unity if mouse pressed but not on ui code example Example: unity Check if mouse clicked UI element EventSystem.current.IsPointerOverGameObject()