Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a1
2018.3.4f1
2019.1.0a1
2019.2.0a1
Issue ID
1131349
Regression
No
Prefabs Overrides Window shows override objects with DontSave flags
How to reproduce:
1. Open user attached project "PrefabOverrides_183.zip"
2. Open "ReproScene" (in "Repro" folder)
3. Select "ReproPrefab"
4. In Inspector, click the "Overrides" button
Expected result: There are no override objects
Actual result: There are override objects
Reproducible with - 2018.3.7f1, 2019.1.0b5, 2019.2.0a6
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (2019.2.X):
The overrides dropdown is not just for showing what will be applied if clicking Apply All. It's also to show what will be reverted if clicking Revert All. Since the overrides in question, which are references to HideAndDontSave objects, would be reverted if clicking Revert All, we can't hide them in the overrides dropdown, since it would then be missing information about some of the things that would be affected.
To avoid the issue, references that are meant to reference non-serialized objects are recommended to make non-serialized as well using the NonSerialized attribute https://docs.unity3d.com/ScriptReference/NonSerialized.html.
Alternatively, the entire objects which references a HideAndDontSave object can be marked as HideAndDontSave as well in certain situations, for example the MeshFilter for a generated mesh. A change is currently being rolled out which ensures that added GameObject and components that are themselves HideAndDontSave don't show up in the overrides dropdown.