UDragDropOperation

This class is the base drag drop operation for UMG, extend it to add additional data and add new functionality.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/DragDropOperation.h

Include

#include "Blueprint/DragDropOperation.h"

Syntax

class UDragDropOperation : public UObject

Remarks

This class is the base drag drop operation for UMG, extend it to add additional data and add new functionality.

Variables

Name Description

Public variable

UWidget *

 

DefaultDragVisual

The Drag Visual is the widget to display when dragging the item.

Public variable

FVector2D

 

Offset

A percentage offset (-1..+1) from the Pivot location, the percentage is of the desired size of the dragged visual.

Public variable

FOnDragDropMult...

 

OnDragCancelled

Public variable

FOnDragDropMult...

 

OnDragged

Public variable

FOnDragDropMult...

 

OnDrop

Public variable

UObject *

 

Payload

The payload of the drag operation.

Public variable

EDragPivot

 

Pivot

Controls where the drag widget visual will appear when dragged relative to the pointer performing the drag operation.

Public variable

FString

 

Tag

A simple string tag you can optionally use to provide extra metadata about the operation.

Constructors

Name Description

Public function

UDragDropOperation

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

DragCancelled

(
    const FPointerEvent& PointerEvent
)

Public function

void

 

Dragged

(
    const FPointerEvent& PointerEvent
)

Public function

void

 

Drop

(
    const FPointerEvent& PointerEvent
)

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