Search Unity

InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed.

Discussion in 'Prefabs' started by che2010, Mar 30, 2019.

  1. che2010

    che2010

    Joined:
    Sep 6, 2012
    Posts:
    5
    InvalidOperationException: Destroying a GameObject inside a Prefab instance is not allowed.
    UnityEngine.Object.DestroyImmediate (UnityEngine.Object obj) (at D:/unity/Runtime/Export/UnityEngineObject.bindings.cs:322)

    Prefab cannot be edited.?????????
    2018.3.10
     

    Attached Files:

  2. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    13,364
    Hi,

    Indeed there is new restrictions for editing prefabs in general, so one way is to create an instance and unlink it before editing.

    I also sent a PM about the issues in Sky Master ULTIMATE, let me know for any further help with the asset.