Search Issue Tracker
Fixed
Fixed in 2023.1.0a23
Votes
0
Found in
2019.4.39f1
2023.1.0a1
Issue ID
UUM-4355
Regression
No
Time of OnDestroy() call differs between Editor and Player
How to reproduce:
1. Open the attached "RuntimeInitializeLoadType" project
2. Enter Play mode
3. Exit Play mode
4. Build and Run the project
5. Open the Player.log file
6. Observe the differences between the Console and Player.log
Expected result: OnDestroy() gets called at the same time (either before or after the scene load) in both the Editor and Player
Actual result: OnDestroy() gets called before the scene load in the Player and after the scene load (when exiting Play mode) in the Editor
Reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.3.4f1, 2022.1.4f1, 2022.2.0a16
Reproducible on: Windows 10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Sprite Preview is broken when the Sprite is too tall or too wide
- Objects are invisible in Scene view when using Wireframe Shading Mode
- The property of a component becomes read-only when it is bound to "PropertyStreamHandle"
- Physics.Raycast does not work when used on the whole model
- Shader Graph changes the Position of Prefab instances in Play mode
Add comment