# HierarchyViewDragAndDropHandlingData

> Contains the data needed to handle a drag and drop operation in a HierarchyView.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Hierarchy](/engine/6000.7/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyModule

```csharp
public readonly ref struct HierarchyViewDragAndDropHandlingData
```

## Properties

| Property                                                                                                               | Description                                                                                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ChildIndex](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/childindex.md)       | Gets the child index in the [HierarchyView](/engine/6000.7/script-reference/unity/hierarchy/hierarchyview.md).                                                                                                                                                                           |
| [DropPosition](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/dropposition.md)   | Gets the [DragAndDropPosition](/engine/6000.7/script-reference/unityengine/uielements/draganddropposition.md) of the drop relative to the [HierarchyViewDragAndDropHandlingData.Target](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/target.md). |
| [EntityIds](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/entityids.md)         | Gets the [EntityId](/engine/6000.7/script-reference/unityengine/entityid.md) values involved in the drag and drop operation.                                                                                                                                                             |
| [InsertAtIndex](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/insertatindex.md) | Gets the insertion index in the [HierarchyView](/engine/6000.7/script-reference/unity/hierarchy/hierarchyview.md).                                                                                                                                                                       |
| [Parent](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/parent.md)               | Gets the parent [HierarchyNode](/engine/6000.7/script-reference/unity/hierarchy/hierarchynode.md) that accepts the new nodes from the drag and drop operation.                                                                                                                           |
| [Paths](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/paths.md)                 | Gets the paths to the assets involved in the drag and drop operation.                                                                                                                                                                                                                    |
| [Source](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/source.md)               | Gets the object that started the drag and drop operation.                                                                                                                                                                                                                                |
| [Target](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/target.md)               | Gets the target [HierarchyNode](/engine/6000.7/script-reference/unity/hierarchy/hierarchynode.md) located at [HierarchyViewDragAndDropHandlingData.InsertAtIndex](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/insertatindex.md).                |
| [View](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/view.md)                   | Gets the [HierarchyView](/engine/6000.7/script-reference/unity/hierarchy/hierarchyview.md) where the drag and drop operation occurs.                                                                                                                                                     |

## Methods

| Method                                                                                                                   | Description                                         |
| ------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------- |
| [GetGenericData](/engine/6000.7/script-reference/unity/hierarchy/hierarchyviewdraganddrophandlingdata/getgenericdata.md) | Gets generic data from the drag and drop operation. |
