Search Issue Tracker
Duplicate
Votes
0
Found in
2018.3.0a10
Issue ID
1076402
Regression
No
SceneManager.LoadScene Unable to unload scene.
I have a Canvas button that triggers the SceneManager.LoadScene(). The issue is that it calls the OnBecameInvisible() method. This will causes a scene to appear in my Hierarchy that I cannot remove. Any edits to the scene at this point will not be saved.
I know i have caused this double sceneload but at this point I have to restart. Unity should be able to handle this gracefully.
Steps to reproduce.
- Open the attached project and load the scene RobbyTestScene
- Play the scene.
- Click the "Reset Scene" button a few times.
- Stop the scene
NOTICE ISSUE >> RobbieTestScene (is Loading) appears in the Hierarchy.
Clicking the dropdown beside the scene and selecting "Remove Scene" has no effect. Edit the scene and try to save. Error appears in console.
Broken
2018.1.0f1, 2018.1.0f2, 2018.3.0a10
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #1266194