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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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