how to get mouse pointer over UI in unity code example Example: unity Check if mouse clicked UI element EventSystem.current.IsPointerOverGameObject()