Search Unity

Destroy

Discussion in 'Getting Started' started by Deleted User, Aug 30, 2020.

  1. Deleted User

    Deleted User

    Guest

    How to delete (Destroy) a prefab from a scene without deleting it from the asset?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    You call destroy not on the prefab itself, but on the instance of the prefab in the scene. When you call Instantiate it returns a reference to the instance of the prefab in the scene, you destroy that.