Unclear about singletons
Hi. If i set script to autoload, engine creates a node with script attached to. However, what happens to singleton node when i replace root node with
I wonder if singleton node get reparented or wiped out and replaced.I need to keep variables and some functions between menu and levels and i really want to know what happens to singleton node. I also want ask you if I can get multiple instances of singleton node by entring the scene where node already was what may happens in Unity with dontDestroyOnLoad flag (That does not mean i want it to happen. Vice versa, it was big problem in Unity).