UWidgetBlueprintLibrary::DetectDragIfPressed

Given the pointer event, emit the DetectDrag reply if the provided key was pressed.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

static FEventReply DetectDragIfPressed
(
    const FPointerEvent & PointerEvent,
    UWidget * WidgetDetectingDrag,
    FKey DragKey
)

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

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.