Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Blueprint
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDragDropOperation
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
Type | Name | Description | |
---|---|---|---|
![]() |
TObjectPtr< class UWidget > | DefaultDragVisual | The Drag Visual is the widget to display when dragging the item. |
![]() |
FVector2D | Offset | A percentage offset (-1..+1) from the Pivot location, the percentage is of the desired size of the dragged visual. |
![]() |
FOnDragDropMulticast | OnDragCancelled | |
![]() |
FOnDragDropMulticast | OnDragged | |
![]() |
FOnDragDropMulticast | OnDrop | |
![]() |
TObjectPtr< UObject > | Payload | The payload of the drag operation. |
![]() |
EDragPivot | Pivot | Controls where the drag widget visual will appear when dragged relative to the pointer performing the drag operation. |
![]() |
FString | Tag | A simple string tag you can optionally use to provide extra metadata about the operation. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UDragDropOperation
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | DragCancelled
(
const FPointerEvent& PointerEvent |
|
![]() |
void | Dragged
(
const FPointerEvent& PointerEvent |
|
![]() |
void | Drop
(
const FPointerEvent& PointerEvent |