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
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
Add comment