Search Issue Tracker
Duplicate
Votes
0
Found in
5.2.0f3
Issue ID
729290
Regression
Yes
Crash when using editor scripts and applying prefab
To reproduce:
1. Open project, open scene "player test" in "Prototyping/Scenes/Testing"
2. Select "player" object.
3. Press "revert" or "apply"
The script "PEPrefabScript" should produce a null reference error, and, after a few seconds, Unity should crash. The crash doesn't occur if you comment out line 434 in the script (the one that causes the null reference) (PrefabUtility.ReplacePrefab(instantiatedPrefab, PrefabUtility.GetPrefabParent(instantiatedPrefab), ReplacePrefabOptions.ConnectToPrefab);).
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
- OnPointerExit and OnPointerEnter is mistakenly called when an overlapping child Image is destroyed
- Dynamic text is rendered in the background when it is inside the <font> tag
- SerializeReference interface does not show CustomPropertyDrawer when it's inherited from another interface
- Rendering artifacts appear in the Editor when modifying the Reflection Probe box size
- [HDRP] XR Multipass calls BeginCameraRendering and EndCameraRendering for each pass of the same camera
This is a duplicate of issue #728853