# GetLocalRotation(AnimationStream)

> Gets the rotation of the transform relative to the parent.

## Definition

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

```csharp
public Quaternion GetLocalRotation(AnimationStream stream)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.6/script-reference/unityengine/animations/animationstream)): The AnimationStream that manages this handle.

### Returns

| Type                                                                    | Description                                           |
| ----------------------------------------------------------------------- | ----------------------------------------------------- |
| [Quaternion](/engine/6000.6/script-reference/unityengine/quaternion.md) | The rotation of the transform relative to the parent. |
