# GetPosition(int)

> Get the position of a vertex in the trail.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Vector3 GetPosition(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the position to retrieve.

### Returns

| Type                                                              | Description                                       |
| ----------------------------------------------------------------- | ------------------------------------------------- |
| [Vector3](/engine/6000.0/script-reference/unityengine/vector3.md) | The position at the specified index in the array. |

### Remarks

Additional Resources: [TrailRenderer.positionCount](/engine/6000.0/script-reference/unityengine/trailrenderer/positioncount.md) property.

Additional Resources: [TrailRenderer.GetPositions](/engine/6000.0/script-reference/unityengine/trailrenderer/getpositions.md) function.
