- Home /
What happens when current scene is closing?
If I have some objects, textures etc. loaded in one scene, will they be destroyed and removed from memory in case of scene closing?
Comment
Best Answer
Answer by Ashish Dwivedi · Feb 18, 2014 at 06:29 AM
Yes all the objects will be destroyed while closing the scene untill and unless you explicitely specify that you don't want to destroy any object. DontDestroyOnLoad Reference
Thanks for answer. Can you answer on additional question too?
I forgot to edit my comment :( I asked that additional question in other thread and have an answer, so don't pay attention to it.
Note that all static data will be kept as they are static. SO if you have a static health for your player it will remain between scenes.
Your answer
![](https://koobas.hobune.stream/wayback/20220613133906im_/https://answers.unity.com/themes/thub/images/avi.jpg)