Answers for "how to destroy object on click unity 3d"

C#
9

how to destroy an object in unity

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

Destroy GameObject from Unityevent

public class DestroyUtil : MonoBehaviour
{
    public void Destroy()
    {
        Destroy(gameObject);
    }
}
Posted by: Guest on November-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language