Search Issue Tracker

Won't Fix

Votes

0

Found in

5.2.1f1

Issue ID

730401

Regression

Yes

DontDestroyOnLoad() pushes object to the bottom of hierarchy

Project Browser/Hierarchy

-

Steps to reproduce:
1. Download and open attached project "repro_730401.zip"
2. Open scene "main"
3. There is an option in camera's script within inspector whether to trigger or not DontDestroyOnLoad()
4. Make sure it's checked and press play
5. Observe that the object with the script is pushed to the end of the hierarchy

Note: Same thing happens to the objects with children (the object get to the bottom w/ all its children in tact) and if the object itself has a parent - nothing happens

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.