DragAndDropUtilities

Drag and drop utilities for both Unity and non-unity objects.

namespace Sirenix.Utilities.Editor
{
public static class DragAndDropUtilities
}

Requirements

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Properties

Return Type Definition Description
int CurrentDragId Gets the currently dragging identifier.
int CurrentDropId Gets the current hovering drop zone identifier.
bool IsDragging Gets a value indicating whether an instance is currently being dragged.

Static Methods

Return Type Definition Description
Object DragAndDropZone(Rect, Object, Type, bool, bool) A draggable zone for both Unity and non-unity objects.
Object DragZone(Rect, Object, Type, bool, bool) A draggable zone for both Unity and non-unity objects.
Object DragZone(Rect, Object, Type, bool, bool, int) A draggable zone for both Unity and non-unity objects.
T DragZone<T>(Rect, T, bool, bool) A draggable zone for both Unity and non-unity objects.
T DragZone<T>(Rect, T, bool, bool, int) A draggable zone for both Unity and non-unity objects.
void DrawDropZone(Rect, Object, GUIContent, int) Draws the graphics for a DropZone.
Object DropZone(Rect, Object, Type) A drop zone area for bot Unity and non-unity objects.
Object DropZone(Rect, Object, Type, bool) A drop zone area for bot Unity and non-unity objects.
Object DropZone(Rect, Object, Type, bool, int) A drop zone area for bot Unity and non-unity objects.
Object DropZone(Rect, Object, Type, int) A drop zone area for bot Unity and non-unity objects.
T DropZone<T>(Rect, T) A drop zone area for bot Unity and non-unity objects.
T DropZone<T>(Rect, T, bool) A drop zone area for bot Unity and non-unity objects.
T DropZone<T>(Rect, T, bool, int) A drop zone area for bot Unity and non-unity objects.
T DropZone<T>(Rect, T, int) A drop zone area for bot Unity and non-unity objects.
int GetDragAndDropId(Rect) Gets a more percistent id for drag and drop.
Object ObjectPickerZone(Rect, Object, Type, bool, int) Draws a objectpicker button in the given rect. This one is designed to look good on top of DrawDropZone().
T ObjectPickerZone<T>(Rect, T, bool, int) Draws a objectpicker butter, in the given rect. This one is designed to look good on top of DrawDropZone().