Search Issue Tracker
Duplicate
Votes
1
Found in
2018.4
2019.4.3f1
2020.2
Issue ID
1270530
Regression
No
Unpacked prefabs lose reference to component in hierarchy when the Prefab .asset is deleted
How to reproduce:
1. Open attached project "UnpackPrefab.zip" and scene "SampleScene"
2. In Hierarchy window, unpack "Prefab" GameObject
3. In Project window, delete Assets/Scenes/Prefab.asset
4. Save scene
5. Open new scene
6. Reopen "SampleScene"
7. In Hierarchy window, select Prefab/tester
8. In Inspector window, observe 'Test (Script)' component
Expected result: There is a reference to 'GameObject'
Actual result: The reference to 'GameObject' is missing
Reproducible with: 2018.4.26f1, 2019.4.9f1, 2020.1.3f1, 2020.2.0a21
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
This is a duplicate of issue #1151512