Answers for "unity click object"

C#
2

gameobject on click unity

private void OnMouseOver() {
        Debug.Log("Hovering over GameObject");
    }
Posted by: Guest on December-31-2020
0

unity click object

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

C# Answers by Framework

Browse Popular Code Answers by Language