Search Issue Tracker
Fixed in 2017.1.0f3
Fixed in 5.5.X, 5.6.X
Votes
12
Found in
5.3.4p5
Issue ID
792933
Regression
No
[Build][DontDestroyOnLoad] Object is destroyed if scene is changed while it's inactive and then that object is activated
Steps to reproduce:
1. Open attached project
2. Build and run project
3. Notice that when game reaches its final stage there's no "InfiniteObject" in the scene although it was marked as DontDestroyOnLoad
Additional steps:
4. Return to editor
5. Open scene "Camera" and run it
6. Once final stage is reached, notice that scene has "InfiniteObject"
Note: this bug is only present in build
Reproduced with: 5.3.0f3, 5.3.4p5, 5.4.0b17
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- Error "InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings." is present when using UI Toolkit and New Input System
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
- [Linux] The mouse wheel input is inverted when scrolling in the Build
yusefrahmati
Sep 21, 2019 12:31
i have this problem in unity 2017 v 4.31f.
Fengkaihao
Nov 05, 2018 17:13
Yea..no. I still got this in Unity 2018.1.1f1. Is this fixed in newer versions? (Dont want to update until the Unityversion where they implemented the new package system).
CJCrates
Jan 06, 2018 14:58
I am still encountering this bug in Unity 2017.1.1f1
hololabs
Jun 19, 2017 20:23
Getting this issue in 5.6.1p4
Was not present for us in 5.6.1f1
boatnik
May 03, 2017 22:56
Occurs on 5.4.3p4 as well.
MadWatch
Nov 24, 2016 03:18
Same problem on 5.4.1f1.