Search Issue Tracker
Fixed in 2022.1.X
Votes
1
Found in
2017.1.0b1
Issue ID
902638
Regression
No
Opening same scene on SceneClosed callback does not add it to scene manager
To reproduce:
1. Open attached project.
2. Run Editor test: OpeningSameScene_OnSceneClosedCallback_ShouldAddItToSceneManager
3. It fails.
What happens:
using EditorSceneManager.CloseScene Scene is closed. On SceneClosed callback, the same scene is opened again (go's are loaded, scene added to manager). Then ::CloseScene finishes, removing scene from scene manager, without unloading its gameobjects.
To fix, these actions should be disallowed somehow or fire callbacks at the very end of the ::CloseScene method (I'm not sure why it's in the middle).
Reproduced on: 2017.1.0b1 (a29fc4a7eb25)
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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
glad
May 18, 2017 09:47
Where the attached project ?