UWidgetBlueprintLibrary::DetectDrag

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

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 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