# GetTranslationOffset(int)

> Gets the rotation offset associated with a source by index.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.5/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

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

### Parameters

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

### Returns

| Type                                                              | Description             |
| ----------------------------------------------------------------- | ----------------------- |
| [Vector3](/engine/6000.5/script-reference/unityengine/vector3.md) | The translation offset. |

### Remarks

Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException, if the index is invalid.
