Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.3.0a6
2018.3.0f2
2019.1.0a1
2019.2.0a1
Issue ID
1114676
Regression
No
Prefab's references are lost when using PrefabUtility.SavePrefabAsset() method
How to reproduce:
1. Open attached "savePrefabAsset.zip" project
2. Click on 'Cube' and call 'ReproduceBug' in the ContextMenu in "NullPrefabBug" script in the Inspector
3. Observe the Console
Expected result: Console returns 'MyPrefab()'
Actual result: Console returns 'null'
Reproducible: 2018.3.0a6, 2018.3.3f1, 2019.1.0a14, 2019.2.0a1
Notes:
- PrefabUtility.SavePrefabAsset(), PrefabUtility.SaveAsPrefabAssetAndConnect() methods were added in Unity 2018.3.0a6
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment