Search Unity

Bug Prevent deleting root object in prefab, editing in context? Can't undo.

Discussion in 'Editor & General Support' started by mortoray, Feb 18, 2023.

  1. mortoray

    mortoray

    Joined:
    Sep 14, 2018
    Posts:
    94
    Is there some way to prevent deleting the root object while editing a prefab in context? The problem is that I sometimes select the wrong object to delete. If that happens to be the root object, the editor leaves the prefab context. This means I can't press Undo to go back before the delete operation.

    Is there some way to prevent this, or some way to undo the errant delete?


    (Note: I often select the wrong object since, for whatever reason, when I click it sometimes selects the root object rather than the one under the cursor. I don't know why that is either.)