Topic was automatically imported from the old Question2Answer platform.
Asked By
Luftensteiner
Hello.
When I reload a current scene, will this destroy the parenting?
A scene1 is the child of viewport, set dynamically in the code.
I reload the scene1. Is the parent still viewport?
Parent will be the same as its parent in the editor. If you have changed the parenting with codes then your parenting would be destroyed and it would again become same as the that in the editor
Ok ty Furthermore Im saving the instances of the scenes in a dictionary in the global file but when I change the scene they’re all null. Why is that so or how can I fix this?
Luftensteiner | 2021-07-28 06:58
Is the global file an autoloaded script?
If yes then all these will not be null.
If not then you need to set it again.