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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.