detect mouse over a certain ui graphic code example Example: unity Check if mouse clicked UI element EventSystem.current.IsPointerOverGameObject()