# ElementAt(int)

> Gets the reference to the element at the given index.

## Definition

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

```csharp
public ref T ElementAt(int index)
```

### Parameters

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

### Returns

| Type | Description                                        |
| ---- | -------------------------------------------------- |
| T    | Returns the reference to the element at the index. |
