Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h |
Include |
#include "Blueprint/WidgetBlueprintLibrary.h" |
Source |
/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp |
static FEventReply DetectDragIfPressed
(
const FPointerEvent & PointerEvent,
UWidget * WidgetDetectingDrag,
FKey DragKey
)
Given the pointer event, emit the DetectDrag reply if the provided key was pressed. If the DragKey is a touch key, that will also automatically work.
Parameter |
Description |
---|---|
PointerEvent |
The pointer device event coming in. |
WidgetDetectingDrag |
Detect dragging in this widget. |
DragKey |
This button should be pressed to detect the drag, won't emit the DetectDrag FEventReply unless this is pressed. |