Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HandleDragAndDropArgs

Information about a drag-and-drop operation in progress. See _dragAndDropUpdate and _handleDrop.
Read time 1 minuteLast updated 6 days ago

Definition

public readonly struct HandleDragAndDropArgs

Properties

Property

Description

childIndexThe child index under the _parentId that the drag-and-drop operation targets. Used only for trees.
dragAndDropDataData stored for the drag-and-drop operation.
dropPositionThe type of drop position.
insertAtIndexThe index at which the drop operation wants to happen.
parentIdThe new parent targeted by the drag-and-drop operation. Used only for trees.
positionThe world position of the pointer.
targetThe target of the drop. There is only a target when hovering over an item. DragAndDropPosition.OverItem