# GetRotationOffset(int)

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

## Definition

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

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

### Parameters

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

### Returns

| Type                                                              | Description                           |
| ----------------------------------------------------------------- | ------------------------------------- |
| [Vector3](/engine/6000.0/script-reference/unityengine/vector3.md) | The rotation offset, as Euler angles. |

### Remarks

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