Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetBlueprintLibrary
Description
Ask Slate to detect if a user starts dragging in this widget later. Slate internally tracks the movement and if it surpasses the drag threshold, Slate will send an OnDragDetected event to the widget.
| Name | DetectDrag |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h |
| Include Path | #include "Blueprint/WidgetBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp |
UFUNCTION (BlueprintPure,
Meta=(HidePin="WidgetDetectingDrag", DefaultToSelf="WidgetDetectingDrag"),
Category="Widget|Drag and Drop|Event Reply")
static FEventReply DetectDrag
(
FEventReply & Reply,
UWidget * WidgetDetectingDrag,
FKey DragKey
)
Parameters
| Name | Remarks |
|---|---|
| WidgetDetectingDrag | Detect dragging in this widget |
| DragKey | This button should be pressed to detect the drag |