AnimancerGUI.

HandleDragAndDrop<T>(Rect, Func<T, bool>, Action<T>, DragAndDropVisualMode) Method

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<T, bool>
onDrop Action<T>
mode DragAndDropVisualMode

Return Value

Type Description
void