Search Issue Tracker
By Design
Votes
1
Found in
2017.1.0f3
Issue ID
934426
Regression
No
Methods like Awake are executed,when loading a scene async,with allowSceneActivation set to false and exiting(play mode or build
How to reproduce:
1. Open user-supplied project
2. Load scene "StartScene"
3. Enter the Play mode
4. Open Console window
5. Wait until "You can now exit play mode." shows up in the Console window
6. Exit the Play mode and observe Console window
Expected result: Play mode is left without executing Awake, OnEnable, OnLevelWasLoaded, OnDisable, OnDestroy methods of the asynchronously loaded scene "SceneToLoad", because allowSceneActivation is set to false.
Actual result: Play mode is left, but Awake, OnEnable, OnLevelWasLoaded, OnDisable, OnDestroy methods of the asynchronously loaded scene "SceneToLoad" are executed even though allowSceneActivation is set to false.
Reproducible with: 2017.3.0a1, 2017.2.0b4, 2017.1.0p1, 5.6.2p4, 5.5.4p1
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
- 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
Resolution Note:
Exiting play mode has to complete all queued load operations