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

Add comment

Log in to post comment