Search Issue Tracker

Duplicate

Votes

7

Found in

2017.4.0f1

2018.4.0f1

2019.2.0a1

2019.2.5f1

2019.3.0a1

2020.1.0a1

Issue ID

1185524

Regression

No

Prefab instances lose reference when a library is deleted and scripts used for reference are imported after project is loaded

Scene Management

-

To reproduce:
1. Extract attached project ("case_1185524.zip")
2. Delete Library folder and move Scripts folder out of Assets
3. Open project > "SampleScene" scene from Assets
4. Move Scripts folder back to Assets
5. In Hierarchy select "root-prefab" Game Object
6. Observe the "Inner" element in the Inspector window

Expected result: "Inner" element holds a reference to "inner-ref" Prefab
Actual result: "Inner" element doesn't hold a reference to "inner-ref" Prefab

Reproducible in: 2017.4.32f1, 2018.4.10f1, 2019.2.7f2, 2019.3.0b5, 2020.1.0a6

Note: The Prefab itself still holds a reference and reimporting it will fix the issue

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.