Search Issue Tracker

Active

Under Consideration for 6000.2.X, 6000.3.X, 6000.4.X

Votes

0

Found in

6000.0.56f1

6000.2.2f1

6000.3.0a6

6000.4.0a1

Issue ID

UUM-115323

Regression

No

Objects with HideFlags.DontSaveInEditor persist after unloading scenes when certain criteria are met

-

How to reproduce:
1. Open the “BuildTest.zip“ project
2. Enter Play Mode (or Build and run with Development Mode and Autoconnect Profiler)
3. Press T to load another scene asynchronously with LoadSceneMode.Single (and then press Y to unload unused assets)
4. Observe the Console

Expected result: Nothing is logged (every object is destroyed and not saved)
Actual result: “Alive gameObject: no_parent_flag_set_editor“ and “Alive gameObject: no_parent_flag_set_editor_build“ info logs are being logged

Reproducible in: 2023.1.0a1, 6000.0.56f1, 6000.2.2f1, 6000.3.0a6

Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested

Notes:
- Only reproducible under these circumstances:
1. The object does not have a parent
2. The object has a HideFlags.DontSaveInEditor flag
3. Scene is loaded with LoadSceneMode.Single
- Either the documentation is incorrect, or the flags don’t work correctly

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.