// Convert a point from screen space to GUI position. public static Vector2 ScreenToGUIPoint(Vector2 screenPoint) { return(GUIClip.ClipToWindow(InternalScreenToWindowPoint(screenPoint))); }
public static Vector2 ScreenToGUIPoint(Vector2 screenPoint) { return(GUIClip.ClipToWindow(screenPoint) - GUIUtility.s_EditorScreenPointOffset); }