ScriptReference/Object.DontDestroyOnLoad #360
Replies: 2 comments
-
Comment by There's a lot of information missing here, especially with regards to changing the parenting relation between objects.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
DontDestroyOnLoad moves the object to a special scene called "DontDestroyOnLoad". This scene is special in that, when you call SceneManager.LoadScene in "Single" mode, it is the only scene which will not automatically be unloaded. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Object.DontDestroyOnLoad
https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
Beta Was this translation helpful? Give feedback.
All reactions