private void OnMouseOver() { if(Input.GetMouseButtonDown(1)) { Debug.Log("The gameObject has been right clicked"); } }