# SetRotation(AnimationStream, Quaternion)

> Sets the rotation of the transform in world space.

## Definition

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

> **Warning:**
>
> **Removed.** SceneHandle is now read-only; it was problematic with the engine multithreading and determinism

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

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The AnimationStream that manages this handle.**** (\[Quaternion]\(/engine/6000.5/script-reference/unityengine/quaternion)): The rotation of the transform in world space.
