Skip to content
DragDropOperation

UI / DragDropOperation

DragDropOperation Class

UI Drag and drop event

Table of contents

Methods

equal(other: DragDropOperation): boolean other
Determine if they are the same
getDragPivot(): DragPivot other
Get drag and drop anchor points
getDragVisualWidget(): Widget other
Get drag and drop display UI
getOffset(): Vector2 other
Get the percentage offset of the dragged UI
getTag(): string other
Get Tag tags
tryGetDragDropPayLoad(): DragDropPayLoad other
Obtain the transmitted data information
tryGetDragDropPayLoadAs<T: extends DragDropPayLoad<T>>(): T: extends DragDropPayLoad<T> other
Obtain the transmitted data information

Private new DragDropOperation()

Methods

equal

equal(other): boolean other

Determine if they are the same

Parameters

other DragDropOperationUsage: Another UI drag and drop event

Returns

booleanboolean

getDragPivot

getDragPivot(): DragPivot other

Get drag and drop anchor points

Returns

DragPivotDrag anchor point

getDragVisualWidget

getDragVisualWidget(): Widget other

Get drag and drop display UI

Returns

WidgetDrag and drop display UI

getOffset

getOffset(): Vector2 other

Get the percentage offset of the dragged UI

Returns

Vector2Percentage offset

getTag

getTag(): string other

Get Tag tags

Returns

stringReturn tag

tryGetDragDropPayLoad

tryGetDragDropPayLoad(): DragDropPayLoad other

Obtain the transmitted data information

Returns

DragDropPayLoadData information

tryGetDragDropPayLoadAs

tryGetDragDropPayLoadAs<T>(): T other

Obtain the transmitted data information

Returns

TData information

Type parameters

Textends DragDropPayLoad<T>