Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchyViewDragAndDropHandlingData

Contains the data needed to handle a drag and drop operation in a HierarchyView.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyModule
public readonly ref struct HierarchyViewDragAndDropHandlingData

Properties

Property

Description

ChildIndexGets the child index in the HierarchyView.
DropPositionGets the DragAndDropPosition of the drop relative to the HierarchyViewDragAndDropHandlingData.Target.
EntityIdsGets the EntityId values involved in the drag and drop operation.
InsertAtIndexGets the insertion index in the HierarchyView.
ParentGets the parent HierarchyNode that accepts the new nodes from the drag and drop operation. This is either the parent of the HierarchyViewDragAndDropHandlingData.Target, or the HierarchyViewDragAndDropHandlingData.Target itself if HierarchyViewDragAndDropHandlingData.DropPosition is DragAndDropPosition.OverItem.
PathsGets the paths to the assets involved in the drag and drop operation.
SourceGets the object that started the drag and drop operation.
TargetGets the target HierarchyNode under the cursor.
ViewGets the HierarchyView where the drag and drop operation occurs.

Methods

Method

Description

GetGenericDataGets generic data from the drag and drop operation.