Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity right click on gameobject

private void OnMouseOver()
    {
        if(Input.GetMouseButtonDown(1))
        {
            Debug.Log("The gameObject has been right clicked");
        }
    }
 
PREVIOUS NEXT
Tagged: #unity #click #gameobject
ADD COMMENT
Topic
Name
8+1 =