Answers for "how to get click in unity"

C#
0

unity click object

void OnMouseDown()
{         
	// this object was clicked - do something     
    Destroy (this.gameObject);  
}
Posted by: Guest on January-15-2020

Code answers related to "how to get click in unity"

C# Answers by Framework

Browse Popular Code Answers by Language