コード例 #1
0
 public UnityEditorMouseCursor(UnityEditor.MouseCursor cursor)
 {
     _unityMouseCursor = cursor;
 }
			public UnityEditorMouseCursor(UnityEditor.MouseCursor cursor)
			{
				_unityMouseCursor = cursor;
			}
コード例 #3
0
 public static void AddCursorRect(UnityEngine.Rect position, UnityEditor.MouseCursor mouse)
 {
 }
コード例 #4
0
        static KeyValuePair <int, Tuple <Rect, ComputeResize> > CreateResizeHandleControl(Rect activeRect, String suffix, Rect parentWindowRect, UnityEditor.MouseCursor cursor, ComputeResize resizeDelegate)
        {
            int id = GUIUtility.GetControlID(("ProBuilderWindowResize" + suffix).GetHashCode(), FocusType.Passive, parentWindowRect);

            HandleUtility.AddControl(id, Vector2.Distance(activeRect.center, Event.current.mousePosition));
            UnityEditor.EditorGUIUtility.AddCursorRect(activeRect, cursor);
            return(new KeyValuePair <int, Tuple <Rect, ComputeResize> >(id, new Tuple <Rect, ComputeResize>(activeRect, resizeDelegate)));
        }