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 12 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.
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 located at HierarchyViewDragAndDropHandlingData.InsertAtIndex.
ViewGets the HierarchyView where the drag and drop operation occurs.

Methods

Method

Description

GetGenericDataGets generic data from the drag and drop operation.