- Home /
 
 
               Question by 
               AppleseedSmoothie · Nov 06, 2016 at 10:14 PM · 
                prefabdestroyassetsclonedestroygameobject  
              
 
              Destroying assets is not permitted to avoid data loss?
So this is my simple script to destroy the prefab clone
public class ObjectDestroy : MonoBehaviour { public void Destroy() { Destroy(gameObject); } }
and it's giving me the error of 'destroying assets is not permitted to avoid data loss", why? all I'm doing is destroying the clone so why is it stating that its going to destroy the prefab itself?
               Comment
              
 
               
              Your answer