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 DragDropOperation | Usage: Another UI drag and drop event |
|---|
Returns
boolean | boolean |
|---|
getDragPivot
• getDragPivot(): DragPivot other
Get drag and drop anchor points
Returns
DragPivot | Drag anchor point |
|---|
getDragVisualWidget
• getDragVisualWidget(): Widget other
Get drag and drop display UI
Returns
Widget | Drag and drop display UI |
|---|
getOffset
• getOffset(): Vector2 other
Get the percentage offset of the dragged UI
Returns
Vector2 | Percentage offset |
|---|
getTag
• getTag(): string other
Get Tag tags
Returns
string | Return tag |
|---|
tryGetDragDropPayLoad
• tryGetDragDropPayLoad(): DragDropPayLoad other
Obtain the transmitted data information
Returns
DragDropPayLoad | Data information |
|---|
tryGetDragDropPayLoadAs
• tryGetDragDropPayLoadAs<T>(): T other
Obtain the transmitted data information
Returns
T | Data information |
|---|
Type parameters
T | extends DragDropPayLoad<T> |
|---|
Editor API