# GetChild(int)

> Gets the child entity at the specified index.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public Entity GetChild(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The zero-based index of the child.

### Returns

| Type                                                               | Description                                  |
| ------------------------------------------------------------------ | -------------------------------------------- |
| [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) | The child Entity, or Entity.Null if invalid. |

### Remarks

Returns Entity.Null if the index is out of bounds or this transform is not part of a hierarchy.
