Search Unity

How do I remove a child object from a prefab instance in the hierachy window?

Discussion in 'Prefabs' started by giraffe1, Feb 7, 2019.

  1. giraffe1

    giraffe1

    Joined:
    Nov 1, 2014
    Posts:
    179
    How do I remove a child game object from a prefab instance without changing the original prefab or unpacking it?
     
  2. runevision

    runevision

    Unity Technologies

    Joined:
    Nov 28, 2007
    Posts:
    1,578
    That's not supported. Deletion of GameObjects is not a supported type of override. For certain use cases, deactivating the GameObject can be a workaround.
     
  3. SeymurSm

    SeymurSm

    Joined:
    Oct 12, 2017
    Posts:
    1
    As far as I am concerned, the best way is to create new prefab by dragging your prefab object from scene view to project view, choosing original prefab on popup dialog. Then it is possible edit new prefab as you want.
     
  4. runevision

    runevision

    Unity Technologies

    Joined:
    Nov 28, 2007
    Posts:
    1,578
    Note though that this is equivalent to first unpacking the Prefab instance and then saving it as a new Prefab.