- 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
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