(Case 1284822) Unpacking prefab breaks reference remapping from nested child prefab to unpacked scen

As the title states, if a prefab is unpacked and nested prefabs inside it reference it, after reloading the scene the nested prefabs point at the original prefab asset, rather than the unpacked object on the scene. If the nested prefab is made dirty via some other means after unpacking, the problem does not occur.

Reproduced on b6 and several other versions of Unity all the way back to 2019.3.2.

Thanks for the report @AlkisFortuneFish ! We’re looking it. Since it’s not particular to 2020.2, I’ll move the thread to the prefabs forum.

1 Like

Thanks Leonhard, force of habit. :stuck_out_tongue:

1 Like

Hi,

Would it be possible to file a bug report so we can reproduce the issue or share screenshots/video so we can see what is happening? Bug report is preferred.

Hey Steen,
That was literally the first thing I did, the number is in the thread title!
Cheers

So sorry, I suck at reading :slight_smile:

We all do it!

I just got a response from QA, this is already on the system as case 1151512. It has been in there for a while.

2 Likes

Ah thanks, I checked up on 1151512 and it has a reasonably high score, so we will get to that soon-ish

1 Like

Here’s the issue tracker link: Unity Issue Tracker - Reference to the root prefab child is lost when pressing "Unpack Prefab" on root prefab and entering Play mode

Thanks Steen. I just hope soon-ish doesn’t mean another year and a half, as 1151512 has been up for that long and the workaround only works for the most trivial of cases.

@AlkisFortuneFish
Your issue has now been fixed. A train of backports will soon take off…

1 Like

Fantastic! :slight_smile: