Navigation
API > API/Runtime > API/Runtime/UMG
This class is the base drag drop operation for UMG, extend it to add additional data and add new functionality.
| Name | UDragDropOperation |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/DragDropOperation.h |
| Include Path | #include "Blueprint/DragDropOperation.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, Meta=(DontUseGenericSpawnObject="True"), MinimalAPI)
class UDragDropOperation : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDragDropOperation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDragDropOperation
(
const FObjectInitializer& ObjectInitializer |
Blueprint/DragDropOperation.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DefaultDragVisual | TObjectPtr< class UWidget > | The Drag Visual is the widget to display when dragging the item. | Blueprint/DragDropOperation.h |
|
| Offset | FVector2D | A percentage offset (-1..+1) from the Pivot location, the percentage is of the desired size of the dragged visual. | Blueprint/DragDropOperation.h |
|
| OnDragCancelled | FOnDragDropMulticast | Blueprint/DragDropOperation.h |
|
|
| OnDragged | FOnDragDropMulticast | Blueprint/DragDropOperation.h |
|
|
| OnDrop | FOnDragDropMulticast | Blueprint/DragDropOperation.h |
|
|
| Payload | TObjectPtr< UObject > | The payload of the drag operation. | Blueprint/DragDropOperation.h |
|
| Pivot | EDragPivot | Controls where the drag widget visual will appear when dragged relative to the pointer performing the drag operation. | Blueprint/DragDropOperation.h |
|
| Tag | FString | A simple string tag you can optionally use to provide extra metadata about the operation. | Blueprint/DragDropOperation.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DragCancelled
(
const FPointerEvent& PointerEvent |
Blueprint/DragDropOperation.h |
|
|
void Dragged
(
const FPointerEvent& PointerEvent |
Blueprint/DragDropOperation.h |
|
|
void Drop
(
const FPointerEvent& PointerEvent |
Blueprint/DragDropOperation.h |
|
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static EUMGItemDropZone ConvertSlateDropZoneToUMG
(
TOptional< EItemDropZone > DropZone |
Blueprint/DragDropOperation.h |