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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
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.