New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instancing a scene where main node is a sprite with Texture set to ViewPortTexture does not render #34044
Comments
I have attached the scene that has sprite and viewport you can test |
This was easy to work around by making the main node of the scene a Node2D and having the sprite that has the ViewportTexture as a child. |
This is weird. It's like the ViewportTexture loses it's reference to Viewport. This can be fixed by enabling Editable Children and setting the texture for the instance. What's even weirder, if you disable Editable Children afterwards it will still work, because the path to Viewport is stored in ViewportTexture inside tscn (even though it's "Local to Scene", whatever is this option supposed to do). |
I saw the ViewportTexture lose the Viewport reference from time to time. |
Also having this issue in 3.2.2, although my main node is a Light2D. |
I use a ViewportTexture in children scene, then instance the scene,encountered an error, viewport_path don't find. |
When you instantiate a scene where main node is a sprite with Texture set to ViewPortTexture does not render in-game. And also if you save that new scene that instantiates our scene, close Godot and reload the saved scene the instantiated scene sprite will not render the viewport even in edit mode.
The text was updated successfully, but these errors were encountered: