Search Issue Tracker

Fixed in 2018.3

Fixed in 2019.1

Votes

51

Found in

2018.3.0b1

2018.3.0f2

2019.1.0a1

2019.2.0a1

Issue ID

1116476

Regression

Yes

Prefab's references are lost when modifying prefab

Scene Management

-

How to reproduce:
1. Open attached "PrefabReferenceLostRepro.zip" project
2. Go to Assets -> Scenes and open 'SampleScene'
3. Click on 'Spawner' and call 'Log' in the ContextMenu in the Inspector
4. Observe the Console
5. Go to Assets, open Enemy in Prefab Mode and edit it (e.g. change the position)
6. Repeat 3, 4 steps

Expected result: Console returns 'Enemy(Enemy)'
Actual result: Console returns 'null'

Reproducible: 2018.3.2f1, 2019.1.0a14, 2019.2.0a1
Not reproducible: 2017.3.0a1, 2017.4.18f1, 2018.3.0a11

Fixed in: 2018.3.6f1, 2019.1.0b4, 2019.2.0a6

Comments (46)

  1. A610865628cfba6aac5dabcb0dbc600e?d=mm

    IspirationHappynes

    Dec 30, 2020 08:12

    Hey, I have the same problem in Unity 2020.1.14f1

  2. D7548826ee299c02ffc770df88c686fe?d=mm

    tomster616

    Dec 12, 2020 15:57

    I'm still having this issues too...

  3. 515c0f7e2873244409631c754899ac2d?d=mm

    zrocweb

    Nov 03, 2020 17:35

    Yes. Unity, please RE-OPEN this issue. Its still not resolved in all of the 2019 & 2020 versions and has routinely messed up my projects and prefabs to no avail.

  4. 34a4e403d0105f02a13e5ae3afc2f38b?d=mm

    sc-mlb

    Oct 30, 2020 16:40

    This is a constant problem for us. We've needed to write a tool that reimports every prefab in the project periodically to keep from getting lots of NREs when running the game. This is not a reliable solution and we need to be confident that Unity handles prefabs correctly.

    We're seeing this behavior in 2019.3.13f1 and all the 2019.4 versions we've tried.

  5. 708735a79d3a883bf1130deaacf07a0e?d=mm

    William821

    Sep 21, 2020 19:03

    Nice post.

  6. E8095658fd38fcea440a74a560c5f954?d=mm

    Hosnkobf

    Apr 30, 2020 15:52

    Why is this marked as fixed? Who can I vote to reopen?

  7. F14295ba33ec3efbce839d47be72974e?d=mm

    hk1ll3r

    Apr 29, 2020 08:03

    happens in 2019.3.11f1.

  8. 688fca32955557613e57c48bc5d9dde5?d=mm

    M4R5

    Apr 17, 2020 23:38

    bump.

    2019.3.9f1: losing references to manually assigned `[SerializeField]` List<GameObject> elements on build

  9. B222552fd31b40f8523af06caef76a81?d=mm

    josrodes

    Apr 09, 2020 17:00

    This is happening in 2019.3.0f6, is there a new Open case for this?

    Prefab nesting is doomed to fail at any point when the root is changed, the whole chain up goes haywire, I just had to unpack the second level to get it "fixed".

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.