Search Issue Tracker
Fixed in 2022.1.X
Votes
1
Found in
2018.3.0a6
2019.2.0a1
2019.2.1f1
2019.3.0a1
2020.1.0a1
Issue ID
1180518
Regression
No
Adding children in Prefab Mode when there are unapplied new GameObject overrides causes the Prefab to have incorrect structure
How to reproduce:
1. Create a new Unity project
2. Create a GameObject with a child and turn it into a Prefab
3. In the Hierarchy window add a new child to the Prefab
4. Without applying the override open the Prefab in Prefab Mode
5. Add a new child to the Prefab
6. Exit Prefab Mode and see the Hierarchy window
Expected result: the unapplied child GameObject override is positioned at the bottom
Actual result: the unapplied child GameObject override is positioned in the middle
Reproducible with: 2018.3.0a6, 2018.4.7f1, 2019.2.4f1, 2019.3.0b1, 2020.1.0a2
Could not test with: 2017.4.32f1, 2018.3.0a5(Uses the old Prefab System)
Notes:
Same structural result can be achieved by applying new child GameObject overrides individually
The unapplied child GameObject can be moved down, but cannot be moved up
The Overrides menu shows not only the added child, but also indistinct changes in Transform for children, positioned lower than the unapplied child override; applying the Transform changes does nothing and retains the entry in the 'Overrides' menu
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
- Crash on "The GUID inside 'Assets/asset.png.meta' cannot be extracted by the YAML Parser." when opening the project
- Shadows disappear when looking at a certain angle in Scene view and using Cloud Shadows with Volumetric Clouds
- StackOverflowException freezes or silently crashes the Editor
- Microsoft Surface Device freezes when detaching and reattaching physical keyboard attachment to a Microsoft Surface device in Standalone Player for Windows
- Shadows are cast with artifacts on GameObjects when the light type is set to Point
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a15: GameObjects added to a prefab instance, which are added after the prefab's children, will remain after the prefab's children even after new children are added to the prefab