Search Issue Tracker
Fixed in 2022.1.X
Votes
2
Found in
2018.4
2019.4.10f1
2020.2
Issue ID
1280465
Regression
No
Prefab instance's sibling index is not updated when a lower index sibling is deleted
Reproduction steps:
1. Download and open the attached project "1280465.zip"
2. Open the "issue" scene
3. Enter and Exit Play mode to create "A Prefab shadow" GameObject as a child of Canvas
4. Delete "A Prefab shadow" GameObject
5. Enter Play mode
Expected result: "A Prefab" GameObject's sibling index after creating "A Prefab shadow" GameObject is 1
Actual result: "A Prefab" GameObject's sibling index after creating "A Prefab shadow" GameObject is 2
Reproduces on: 2018.4.27f1, 2019.4.11f1, 2020.1.7f1, 2020.2.0b5
Notes:
The issue would not reproduce if "A Prefab" GameObject's Prefab connection is removed.
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 ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a15