Search Issue Tracker
Fixed in 4.6.X
Votes
0
Found in
4.6.0b10
Issue ID
614267
Regression
No
Crash when deleting a gameObject prefab with a Canvas component
Steps to reproduce:
1. Open the attached project and the scene 'test'
2. Delete the Button gameObject under Canvas
3. Observe the crash. The crash occurs when deleting a prefab with a Canvas component.
Comments (1)
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
- Property field override bar does not update transparency correctly when switching between valid and invalid GameObjects
- Project window selection is not updated when search term is changed
- Error when adding valid MonoBehaviour script to Prefab in Project window
- Editor Launch Screen will close when Enter is pressed on it
- ObjectPool's pool is destroyed when entering Play Mode without reloading Domain
Bloodysoft
Jun 09, 2015 04:21
This also occurs with 5.0* but worse.
I tried to submit a bug report but it needed to upload 860MB, so it wasn't possible with metered bandwidth.
With Unity 5x, deleting a saved prefab which also resides in hierarchy sets it as missing prefab. In older versions, it would leave the prefab in hierarchy, but only turn it red. You could delete it, then undelete (ctrl+z) and it would continue to function. In 5x if there are any missing prefabs which had a Canvas attached, it will crash to desktop, and any further tries to open the effected scene will instantly crash to desktop. If you have a backup of the project, and replace the deleted prefabs with the backed up prefabs, you can then open the scene.
To reproduce this, save a prefab with Canvas, then delete the prefab from project pane, open another scene or quit Unity, then reopen the scene with the deleted prefab still in it. If this is done without any UI elements, the scene will open and only produce a missing prefab in the scene.