I am new to C#, so laugh if you want, but…
How do I destroy a Prefab? I can sapwn it, but I can’t despawn it. I tried, “Destroy(name of prefab)” but then this error popped up.
1 Like
You can’t delete the prefab. You have to delete the object. If you instantiated an object you need a reference to that, and delete that object. Example: GameObject toDelete = Instantiate(prefab, transform.position);
and then destroy that object: Destroy(toDelete);
Hope this helps