# OpenAnimationStream(Animator, ref AnimationStream)

> Open a new stream on the Animator.

## Definition

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

## OpenAnimationStream(Animator, AnimationStream)

```csharp
public static bool OpenAnimationStream(this Animator animator, ref AnimationStream stream)
```

### Parameters

**** (\[Animator]\(/engine/6000.0/script-reference/unityengine/animator)): The [Animator](/engine/6000.0/script-reference/unityengine/animator.md) instance that calls this method.**** (\[AnimationStream]\(/engine/6000.0/script-reference/unityengine/animations/animationstream)): The new stream.

### Returns

| Type                                                          | Description                                        |
| ------------------------------------------------------------- | -------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns whether or not the stream has been opened. |

### Remarks

The stream opened this way must be closed using [AnimatorJobExtensions.CloseAnimationStream](/engine/6000.0/script-reference/unityengine/animations/animatorjobextensions/closeanimationstream.md).
