Answers for "unity3d destroy entire object and chilren"

C#
2

unity destroy object invisible

//INSIDE ON YOUR OBJECT'S SCRIPT
 
 void OnBecameInvisible() {

        Destroy (this.gameObject);
    
    }
Posted by: Guest on March-24-2022
9

how to destroy an object in unity

Destroy(gameObject);
Posted by: Guest on February-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language