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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Add comment