# GetChild(in HierarchyNode, int)

> Gets the child node at the specified index of a hierarchy node.

## Definition

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

## GetChild(HierarchyNode, int)

```csharp
public HierarchyNode GetChild(in HierarchyNode node, int index)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.7/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node to get the child from.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the child to retrieve.

### Returns

| Type                                                                              | Description                                                                                                         |
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [HierarchyNode](/engine/6000.7/script-reference/unity/hierarchy/hierarchynode.md) | The child [HierarchyNode](/engine/6000.7/script-reference/unity/hierarchy/hierarchynode.md) at the specified index. |
