Create Drag & Drop Operation

Create Drag & Drop Operation

Windows
MacOS
Linux

Creates a new drag drop operation

Create Drag & Drop Operation
Class
Select Class
Tag
Payload
Select Asset
Default Drag Visual
Select Asset
Pivot
CenterCenter
Offset
X0.0
Y0.0
Return Value
Select Asset

Inputs

In
Exec
Class
Drag Drop Operation Class Reference

Drag Drop Operation Class Reference Class The object class you want to construct

Tag
String

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

Payload
Object Reference

The payload of the drag operation. This can be any UObject that you want to pass along as dragged data. If you were building an inventory screen this would be the UObject representing the item being moved to another slot.

Default Drag Visual
Widget Object Reference

The Drag Visual is the widget to display when dragging the item. Normally people create a new widget to represent the temporary drag.

Pivot
EDragPivot Enum

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

Offset
Vector 2D Structure

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

Outputs

Out
Exec
Return Value
Drag Drop Operation Object Reference

Drag Drop Operation Object Reference Return Value The constructed object

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