Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2017.2.0b1
Issue ID
923322
Regression
No
Move Game Object To Unloaded scene on scene unloaded callback is possible, and leaves the object without valid scene
To reproduce:
1. Open attached project.
2. Run tests.
Result:
Moving game object to scene (which was unloaded), on sceneUnloaded callback is possible. It succedes, then scene is destroyed but object is not unloaded, it stays without valid scene, floating in space. So if user looses reference to that game object, it won't be possible to destroy it.
Although, if unloaded scene does not have path (it means it come from SceneManager.CreateScene in runtime), then game object is stored in DontDestroyOnLoad scene
Expected result: I think gameObject.scene should always be valid. This operation should not be possible at all, or object should be stored in DontDestroyOnLoad.
Reproduced: 2017.2.0b3 (4c2ac554540c)
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
Add comment