Class DragDropOperation
This class is the base drag drop operation for UMG, extend it to add additional data and add new functionality.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.UMG
Assembly: UE4DotNet.dll
Syntax
public class DragDropOperation : UObject
Properties
| Improve this Doc View SourceDefaultDragVisual
The Drag Visual is the widget to display when dragging the item.
Declaration
public Widget DefaultDragVisual { get; }
Property Value
Type | Description |
---|---|
Widget |
Remarks
Normally people create a new widget to represent the temporary drag.
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static DragDropOperation DefaultObject { get; }
Property Value
Type | Description |
---|---|
DragDropOperation |
Offset
A percentage offset (-1..+1) from the Pivot location, the percentage is of the desired size of the dragged visual.
Declaration
public Vector2D Offset { get; set; }
Property Value
Type | Description |
---|---|
Vector2D |
Payload
The payload of the drag operation.
Declaration
public UObject Payload { get; set; }
Property Value
Type | Description |
---|---|
UObject |
Remarks
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.
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static DragDropOperation New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
DragDropOperation |
Events
| Improve this Doc View SourceDragCancelled
Drag Cancelled
Declaration
public event DragDropOperation.DragCancelled_delegate DragCancelled
Event Type
Type | Description |
---|---|
DragDropOperation.DragCancelled_delegate |
Dragged
Dragged
Declaration
public event DragDropOperation.Dragged_delegate Dragged
Event Type
Type | Description |
---|---|
DragDropOperation.Dragged_delegate |
Drop
Drop
Declaration
public event DragDropOperation.Drop_delegate Drop
Event Type
Type | Description |
---|---|
DragDropOperation.Drop_delegate |
Operators
| Improve this Doc View SourceImplicit(IntPtr to DragDropOperation)
Convert from IntPtr to UObject
Declaration
public static implicit operator DragDropOperation(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
DragDropOperation |