# SetLocalRotation(AnimationStream, Quaternion)

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

## Definition

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

```csharp
public void SetLocalRotation(AnimationStream stream, Quaternion rotation)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The [AnimationStream](/engine/6000.5/script-reference/unityengine/animations/animationstream.md) that holds the animated values.**** (\[Quaternion]\(/engine/6000.5/script-reference/unityengine/quaternion)): The rotation of the transform relative to the parent.
