Unity Issue Tracker - Time of OnDestroy() call differs between Editor and Player
Fixed
UUM-4355
Time of OnDestroy() call differs between Editor and Player
Unity: Scene Management
Fixed
2023.1.X
Won't Fix
2019.4.X
2019.4 LTS has reached end-of-life. This port is cancelled.
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