// Requires for the object to have a collider and this script attached private void OnMouseDown() { Debug.Log("Clicked on object!"); }