This site uses strictly necessary cookies. More Information
X- Home /
Forcing scene to unload
Is there any way to unload a scene without having to use Application.Load(...) to load a new scene?
Two solutions I came up with are: 1.) Create a blank dummy scene and use Application.Load(...) to force everything to clear out. 2.) Retrieve a list of every game object and manually delete them.
It just seems like there is a better approach that may exist within the API that I did not find yet.
Answer by qJake · Mar 31, 2010 at 11:36 PM
Your best bet is to just use a blank scene... it's rare that you would need to "manually unload" a scene in a game, since Application.Load takes care of all of that automatically.
But I do want to unload a scene manually... I have scene A loaded, load scene B additive, and I want to unload scene B while keeping scene A.
Your answer
Welcome to Unity Answers
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Follow this Question
Related Questions
Question about asset memory not freed after calling SceneManager.UnloadSceneAsync() 0 Answers
UnloadSceneAsync() does not seem to work with additive scenes. 1 Answer
simple question. js script. opposite to start function. 1 Answer
How Do i Get Rid Of A Scene Without Deleting It's Objects 1 Answer
How to stop loading of a scene that's loading using SceneManager.LoadSceneAsync ? 1 Answer