Why is my viewport texture not recognizing my viewport node as a viewport node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By M4gma

Besides this error I also can’t see anything when the scene is running

What are you trying to do?
I’m not sure creating ViewportTextures from scratch even works. Usually we get them from Viewports, not the opposite.

Also, what is Draw in your code? It’s not a member or local variable, and you didn’t use $ either. Is it an auto-load?

Zylann | 2018-05-11 00:10