Answers for "unity how to make an object destroy itself"

C#
4

how to destroy object in unity c#

// To remove a GameObject attached to this script instantly
Destroy(gameObject);
// To remove a GameObject attached to this script
//in certain time (5 seconds for this example)
Destroy(gameObject,5);
Posted by: Guest on April-28-2022
16

destroy gameobject unity

Destroy(this.gameObject);
Posted by: Guest on March-16-2020

Code answers related to "unity how to make an object destroy itself"

C# Answers by Framework

Browse Popular Code Answers by Language