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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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.