Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4
2020.3
2021.2
2021.2.6f1
2022.1
Issue ID
1389000
Regression
No
Editor does not show removed Components when they are no longer a part of the original Prefab
Reproduction steps:
1. Open the attached project "RemovedComponentsBug.zip"
2. In the Project window select "Assets/Prefabs/Cube Variant.prefab"
3. In the Inspector, observe the number of Components listed as removed
4. Open "Cube Variant.prefab" with a text editor
5. Observe the number of removed Components listed under "m_RemovedComponents:"
Expected result: Removed components in the Inspector match the ones found when opening the Prefab with a text editor
Actual result: The text editor lists more removed components than the Inspector
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Notes:
- The issue occurs when you remove a component from both the original Prefab and from its variant, as the YAML file still sees the removed Components, but the Editor no longer recognizes them as removed Components
- The same issue applies to "PrefabUtility.GetRemovedComponents", as it only returns components that are still a part of the original Prefab
- Reimporting "Cube Variant.prefab" throws a warning: "Importer(PrefabImporter) generated inconsistent result for asset"
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
- TreeView Child display toggle styling becomes reversed when clicking and dragging it
- Null is returned when using FocusOutEvent.relatedTarget
- Unity_BaseInstanceID is always zero when rendering multiple meshes and instancing with the same buffer
- UI Document button's text does not resize relatively when size in percentage (%) is used
- Event.current.mousePosition has an offset of 1px along the y-axis in WebGL build when the mouse button is released
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a6
The implemented solution enables users to clean up unused removed components on Prefab instances from the Prefab Overrides Window or Scene Hierarchy context menus in a single step. This is done to avoid the Inspector becoming polluted with 'empty' placeholders for unused components which users would have to remove one by one.