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
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback