Answers for "unity right click event"

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

C# Answers by Framework

Browse Popular Code Answers by Language