Destroying a spawned prefab instance
I am spawning a Pause screen from a prefab on click. I want the pause screen to disappear when the player clicks to continue game play but am having issues. I used
Destroy (prefab);
but this actually destroyed the prefab information in the project as opposed to removing it from the game.... Unity took it too literally!
Any ideas how to make it disappear without actually vanishing from the project? It's a 2D game coded in Csharp.
Comment
Your answer
Follow this Question
Related Questions
Destroy a prefab from another class 2 Answers
How do I destroy a prefab from an array list? 1 Answer
References to Prefab get lost on start 1 Answer
How can I destroy a prefab clone? 1 Answer
Destroy a spawning enemy prefab with an weapon prefab 0 Answers