#Sub-Viewport texture path invalid

1 messages · Page 1 of 1 (latest)

ivory tree
#

so I have been trying to make a system where the part of the world is replicated using subviewports, cameras and sprite2Ds. the system is kinda hard to explain, but at its base, is just doing the previously mentioned. but every time the game runs, the sprite2Ds lose their references to each subviewport's texture.

funnily enough, the system works pre-runtime, and not during run-time. every time i run the project I keep getting this error, and I'm not sure what I am doing wrong.
ERROR: Path to node is invalid: '{viewport_name}'.
tl;dr: sprite2D stops referencing to subviewport's texture during runtime, how can I fix this?

mortal mirage
#

Check to make sure the ViewportTexture resources on the sprites are marked as local to scene. In the past, I ran into problems with references getting lost, and that was the fix. If it's not that, then I have no clue.