Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

onmousedown() not working unity

// Need BoxCollider or RigidBody to work on object
private void OnMouseDown()
    {
        GetComponent<Renderer>().material.color = Color.blue;
    }
 
PREVIOUS NEXT
Tagged: #working #unity
ADD COMMENT
Topic
Name
5+7 =