How to reproduce:
- Open the “SceneCountBug.zip“ project
- Open the “SampleScene“ and observe the Console
- Open the “SampleSceneExtra“
- Observe the Console
Actual result: “Scene Closed: 2” is logged
Expected result: “Scene Closed: 1” is logged
Reproducible in: 2023.1.0a1, 6000.0.65f1, 6000.3.3f1, 6000.4.0b3, 6000.5.0a4
Reproduced on: Windows 11 Pro (25H2)
Not reproduced on: No other environment tested
Notes:
- This also happens when an additively added scene is removed
- EditorSceneManager.sceneClosed event should be called after changing scenes. Therefore, the sceneCount should always return “1“