# GetRotation(AnimationStream)

> Gets 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

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

### Parameters

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

### Returns

| Type                                                                    | Description                                   |
| ----------------------------------------------------------------------- | --------------------------------------------- |
| [Quaternion](/engine/6000.5/script-reference/unityengine/quaternion.md) | The rotation of the transform in world space. |
