文档

Unity Engine

Unity Engine

HandleDragAndDropArgs

Information about a drag-and-drop operation in progress. See BaseVerticalCollectionView.dragAndDropUpdate and BaseVerticalCollectionView.handleDrop.
阅读时间1 分钟最后更新于 20 天前

Definition

public readonly struct HandleDragAndDropArgs

Properties

Property

Description

childIndexThe child index under the HandleDragAndDropArgs.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