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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
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.