コード例 #1
0
 // Convert a point from screen space to GUI position.
 public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
 {
     return(GUIClip.ClipToWindow(InternalScreenToWindowPoint(screenPoint)));
 }
コード例 #2
0
 public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
 {
     return(GUIClip.ClipToWindow(screenPoint) - GUIUtility.s_EditorScreenPointOffset);
 }