Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2019.4.X
Votes
1
Found in
2019.4
2019.4.11f1
2021.1
Issue ID
1287352
Regression
No
Prefab relations break when unpacking outermost Prefab in nested Prefabs
How to reproduce:
1. Open attached project "1287352.zip"
2. Open "SampleScene" Scene
3. In Hierarchy window > Click on "Prefab1"
4. In Inspector window > Click on "Something" component
5. Notice which Prefab gets highlighted
6. Repeat 3-5 steps with "Prefab2" and "Prefab3"
7. Unpack "Prefab1"
8. Repeat 3-5 steps with "Prefab1", "Prefab2" and "Prefab3"
9. Save the Scene
10. Open "New Scene" Scene
11. Open "SampleScene" Scene
12. Repeat 3-4 steps with "Prefab1", "Prefab2" and "Prefab3"
13. Notice which things get highlighted
Expected result: Consistency before and after saving the Scene. "Prefab Pointer" referring to Prefabs in the same location.
Actual result: "Something" component in "Prefab Pointer" is referring to Prefabs in the Scene before saving the Scene. After saving the Scene, "Something" component in "Prefab Pointer" is referring to Prefabs in the Assets folder ("Prefab2" is referring to "Prefab3" and it can't found it in the Assets folder for some reason)
Reproducible with: 2019.4.14f1, 2020.1.13f1, 2020.2.0b11, 2021.1.0a3
Not reproducible with: 2021.1.0a5
Couldn't test with: 2018.4 (couldn't downgrade project)
Note: Highly recommend to watch the attached video, because steps can be quite confusing and they are much more clear in the video
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 2021.1):
Fixed in 2021.1.0a4
Resolution Note (fix version 2019.4):
Fixed in 2019.4.16f1