Summary
Invokes `onDrop` if the
UnityEngine.Event.current
is a drag and drop event inside the `dropArea`.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Containing Type
- AnimancerGUI
Syntax
public static void HandleDragAndDrop<T>(Rect dropArea, Func<T, bool> validate, Action<T> onDrop, DragAndDropVisualMode mode = 2)
where T : class
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
dropArea | Rect | |
validate | Func |
|
onDrop | Action |
|
mode | Drag |
Return Value
Type | Description |
---|---|
void |