Answers for "unity on right click"

C#
2

unity right click on gameobject

private void OnMouseOver()
    {
        if(Input.GetMouseButtonDown(1))
        {
            Debug.Log("The gameObject has been right clicked");
        }
    }
Posted by: Guest on May-17-2021

Code answers related to "unity on right click"

C# Answers by Framework

Browse Popular Code Answers by Language