public static bool IsCursorOnUI(int inputID=-1){ EventSystem eventSystem = EventSystem.current; return ( eventSystem.IsPointerOverGameObject( inputID ) ); }