So, i have i wierd problem, i have never expirience before.
As I understand, using loadScene()
complettly stops the current scene, delete assets and load another one…
So, i have scene A opened on start… After calling loadSCene(B)
in scene A, i could call loadScene(A)
somewhere, and A would open like the first time…
But i realized, that in my case, When I doloadScene(A)
, all the things are as they were before loadScene(B)
. So all the changes of variables, nodes are there. It is like pausing the scene, not opening it right from the start.
How can i open a scene with the original settings? I want to open the scene like it was opened on the begining of the game. I don’t want thee changes of variables and nodes to be there again… How can I “Restart” a scene?
Thanks for your help and time.