Show / Hide Table of Contents

Class DragDropOperation

This class is the base drag drop operation for UMG, extend it to add additional data and add new functionality.

Inheritance
System.Object
UObject
DragDropOperation
Inherited Members
UObject.TransientPackage
UObject.CastTo<T>(UObject)
UObject.CastTo(UObject, Type)
UObject.RemoveObject(UObject)
UObject.MakeObjectArrayField<T>(NativeArray*)
UObject.NotImplemented<T>()
UObject.Construct()
UObject.GetHashCode()
UObject.GetName()
UObject.ToString()
UObject.Name
UObject._None
UObject.None
UObject.ObjPointer
UObject.LoadObjectFromClass(Class, UObject, String, String, LoadFlags, PackageMap, Boolean)
UObject.LoadClass(Class, UObject, String, String, LoadFlags, PackageMap)
UObject.GetPropertyFor<T>(Name)
UObject.ExecuteUbergraph
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 Source

DefaultDragVisual

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.

| Improve this Doc View Source

DefaultObject

Get UE4 Default Object for this Class

Declaration
public static DragDropOperation DefaultObject { get; }
Property Value
Type Description
DragDropOperation
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

StaticClass

Get UE4 Class

Declaration
public static Class StaticClass { get; }
Property Value
Type Description
Class

Methods

| Improve this Doc View Source

New(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 Source

DragCancelled

Drag Cancelled

Declaration
public event DragDropOperation.DragCancelled_delegate DragCancelled
Event Type
Type Description
DragDropOperation.DragCancelled_delegate
| Improve this Doc View Source

Dragged

Dragged

Declaration
public event DragDropOperation.Dragged_delegate Dragged
Event Type
Type Description
DragDropOperation.Dragged_delegate
| Improve this Doc View Source

Drop

Drop

Declaration
public event DragDropOperation.Drop_delegate Drop
Event Type
Type Description
DragDropOperation.Drop_delegate

Operators

| Improve this Doc View Source

Implicit(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX