Search Issue Tracker
By Design
Votes
0
Found in
2019.4.4f1
2020.1.0b2
2020.2.0a2
2020.2.0a18
Issue ID
1263274
Regression
Yes
EditorSceneManager: sceneClosing and sceneClosed callbacks are called after entering and leaving play mode
How to reproduce:
1. Open attached Unity project
2. Load Scene scene
3. Enter play mode
4. Leave play mode
Expected result: Scene is not closed and callbacks are not called.
Actual result: "sceneClosing" and "sceneClosed" messages pop up in a Console window.
Reproduced with: 2020.2.0a18, 2020.1.0b16, 2019.4.4f.
Not reproduced with: 2020.2.0a1, 2020.1.0b1, 2019.4.3f1, 2018.4.25f1.
Comments (1)
-
flashframe
Aug 26, 2023 11:08
But then why aren't the sceneOpening and sceneOpened callbacks fired too? Is there a way to tell that the scene has been reloaded in the editor after exiting playmode?
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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
Resolution Note:
When entering play mode the scene open in edit mode are closed and new one loaded. So firing scene closing/closed callbacks are intended.