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.
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
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
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.