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

UI

-

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)

  1. 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.

Add comment

Log in to post comment