Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.4.0b17
Issue ID
797359
Regression
No
Can't unload scene passed to delegate SceneManager.sceneLoaded
To reproduce:
1. Open attached project
2. Open two scenes in the editor and hit play
3. both scenes stay loaded although at least the second one is expected to unload
Reproducible: 5.4.0b18, 5.5.0a1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Lukas Brunner
May 22, 2016 10:46
Actually I found a workaround for this, although it might not be the cleanest one. The newly created scene can be unloaded by starting a coroutine which yields with a new WaitForEndOfFrame. The drawback of this workaround is that it requires to a monobehaviour for the coroutine. I ended up changing my static class into singleton monobehaviour which lives in the scene that won't be unloaded.