UWidgetBlueprintLibrary::DetectDrag

Ask Slate to detect if a user starts dragging in this widget later.

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 DetectDrag
(
    FEventReply & Reply,
    UWidget * WidgetDetectingDrag,
    FKey DragKey
)

Remarks

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.

Parameters

Parameter

Description

WidgetDetectingDrag

Detect dragging in this widget

DragKey

This button should be pressed to detect the drag

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss