I know this is a newbie question but is it possible to destroy my prefab or make it dissapear after a few seconds it spawned?
/thanks
I know this is a newbie question but is it possible to destroy my prefab or make it dissapear after a few seconds it spawned?
/thanks
You can use this for destroying the prefab:
And this for "hideing" the gameObject instead of destroying it:
GameObject.active = false; // For disableing
GameObject.active = true; // For enableing.
This will disable everything on the gameObject. Colliders, renderer, light you name it.
-Thanks to Bunny83.
Any questions please ask :)