HandleDragAndDropArgs
Information about a drag-and-drop operation in progress. See _dragAndDropUpdate and _handleDrop.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public readonly struct HandleDragAndDropArgs
Properties
Property | Description |
|---|---|
| childIndex | The child index under the _parentId that the drag-and-drop operation targets. Used only for trees. |
| dragAndDropData | Data stored for the drag-and-drop operation. |
| dropPosition | The type of drop position. |
| insertAtIndex | The index at which the drop operation wants to happen. |
| parentId | The new parent targeted by the drag-and-drop operation. Used only for trees. |
| position | The world position of the pointer. |
| target | The target of the drop. There is only a target when hovering over an item. OverItem |