Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UWidgetBlueprintLibrary
References
| Module | UMG |
| 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
&40;
const FPointerEvent & PointerEvent,
UWidget &42; WidgetDetectingDrag,
FKey DragKey
&41;
Remarks
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.
Parameters
| Name | 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. |