Search Issue Tracker

Fixed in 2022.1.X

Votes

4

Found in

2018.3.0a6

2018.3.4f1

2019.1.0a1

2019.2.0a1

Issue ID

1127653

Regression

No

Prefab Variant Child has a lower Index than a Prefab Child when editing a Prefab while Prefab Variant is not in the Project

Scene Management

-

Steps to reproduce:
1. Open the attached Project "case_1127653"
2. Navigate to Project -> Assets
3. Create a Variant of a "Base Prefab" with coloured Image as a child
4. Move the Prefab Variant out of the Project
5. Add a child to the "Base Prefab" that has a coloured image
6. Move the Prefab Variant back to the Project
7. Open the Prefab Variant
8. Notice how the Child of the Prefab Variant has a lower sibling index compared to Original Prefab child

Expected results: Variant of a Prefab has the highest sibling index
Actual results: Child of the Original Prefab has the highest sibling index

Reproducible with: 2018.3.0a6, 2018.3.7f1, 2019.1.0b4, 2019.2.0a6

Note: Improved Prefabs appeared in 2018.3.0a6

  1. Resolution Note (fix version 2022.1):

    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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.