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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on memcpy when using ScreenCapture.CaptureScreenshot with superSize set to zero
- [URP] Package Samples - Missing scripts in Unity 2022+
- [URP][Package Samples] Continuous "Renderer at index _ is missing for camera _" warnings when opening sample scene
- [URP] Package Samples - Missing scripts in Unity 6
- [URP] Package samples - scenes using FirstPersonController not working in Unity 6
Add comment