| Namespace: | Sirenix.Utilities.Editor |
| Assembly: | Sirenix.Utilities.Editor |
public static class DragAndDropUtilities
public static int CurrentDragId { get; }
public static int CurrentDropId { get; }
public static int HoveringAcceptedDropZone { get; }
public static bool IsDragging { get; }
public static Vector2 MouseDragOffset { get; }
public static Vector2 OnDragStartMouseScreenPos { get; }
public static int PrevDragAndDropId { get; }
public static void DisallowedDropAreaForNextDragZone(Rect rect)
| UnityEngine.Rect | rect |
public static object DragAndDropZone(Rect rect, object value, Type type, bool allowMove, bool allowSwap)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap |
| System.Object |
public static object DragAndDropZone(Rect rect, object value, Type type, bool allowMove, bool allowSwap, bool allowSceneObjects)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap | |
| System.Boolean | allowSceneObjects |
| System.Object |
public static object DragZone(Rect rect, object value, Type type, bool allowMove, bool allowSwap)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap |
| System.Object |
public static object DragZone(Rect rect, object value, Type type, bool allowMove, bool allowSwap, int id)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap | |
| System.Int32 | id |
| System.Object |
public static T DragZone<T>(Rect rect, T value, bool allowMove, bool allowSwap)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap |
| T |
| T |
public static T DragZone<T>(Rect rect, T value, bool allowMove, bool allowSwap, int id)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Boolean | allowMove | |
| System.Boolean | allowSwap | |
| System.Int32 | id |
| T |
| T |
public static void DrawDropZone(Rect rect, object value, GUIContent label, int id)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| UnityEngine.GUIContent | label | |
| System.Int32 | id |
public static void DrawDropZone(Rect rect, Texture preview, GUIContent label, int id)
| UnityEngine.Rect | rect | |
| UnityEngine.Texture | preview | |
| UnityEngine.GUIContent | label | |
| System.Int32 | id |
public static object DropZone(Rect rect, object value, Type type)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type |
| System.Object |
public static object DropZone(Rect rect, object value, Type type, bool allowSceneObjects)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowSceneObjects |
| System.Object |
public static object DropZone(Rect rect, object value, Type type, bool allowSceneObjects, int id)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowSceneObjects | |
| System.Int32 | id |
| System.Object |
public static object DropZone(Rect rect, object value, Type type, int id)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Int32 | id |
| System.Object |
public static T DropZone<T>(Rect rect, T value)
| UnityEngine.Rect | rect | |
| T | value |
| T |
| T |
public static T DropZone<T>(Rect rect, T value, bool allowSceneObjects)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Boolean | allowSceneObjects |
| T |
| T |
public static T DropZone<T>(Rect rect, T value, bool allowSceneObjects, int id)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Boolean | allowSceneObjects | |
| System.Int32 | id |
| T |
| T |
public static T DropZone<T>(Rect rect, T value, int id)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Int32 | id |
| T |
| T |
public static int GetDragAndDropId(Rect rect)
| UnityEngine.Rect | rect |
| System.Int32 |
public static object ObjectPickerZone(Rect rect, object value, Type type, bool allowSceneObjects, int id)
| UnityEngine.Rect | rect | |
| System.Object | value | |
| System.Type | type | |
| System.Boolean | allowSceneObjects | |
| System.Int32 | id |
| System.Object |
public static T ObjectPickerZone<T>(Rect rect, T value, bool allowSceneObjects, int id)
| UnityEngine.Rect | rect | |
| T | value | |
| System.Boolean | allowSceneObjects | |
| System.Int32 | id |
| T |
| T |
public static bool PrevDragZoneWasClicked()
| System.Boolean |