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
- Manual reference page for Grid Selection is missing
- Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
- Prefab "Overrides" list item popups are overridden when navigating with keyboard arrow keys
- Alpha Tolerance setting does not affect generated outlines when generating Custom Physics Shape in the Sprite Editor
- The information/help message section misses a margin in the "Profiler" window
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