---
title: SetAnimationStreamSource(AnimationPlayableOutput, AnimationStreamSource)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/animations/animationplayableoutputextensions/setanimationstreamsource
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/experimental/animations/animationplayableoutputextensions/setanimationstreamsource.md
last_updated: 2026-10-07
generated_at: 2026-11-11T07:49:38.080Z
locale: en-us
---

# SetAnimationStreamSource(AnimationPlayableOutput, AnimationStreamSource)

> Sets the stream source for the specified AnimationPlayableOutput.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use AnimationPlayableOutput.SetAnimationStreamSource(AnimationStreamSource) instead

```csharp
public static void SetAnimationStreamSource(this AnimationPlayableOutput output, AnimationStreamSource streamSource)
```

### Parameters

**** (\[AnimationPlayableOutput]\(/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput)): The [AnimationPlayableOutput](/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput.md) instance that calls this method.**** (\[AnimationStreamSource]\(/engine/7000.0/script-reference/unityengine/animations/animationstreamsource)): The [AnimationStreamSource](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource.md) to apply on this output.

### Remarks

When setting the [AnimationStreamSource](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource.md) of the output to [AnimationStreamSource.DefaultValues](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/defaultvalues.md), the [AnimationStream](/engine/7000.0/script-reference/unityengine/animations/animationstream.md) of this output initalizes every frame with the default values of the [Animator](/engine/7000.0/script-reference/unityengine/animator.md).

When setting the [AnimationStreamSource](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource.md) of the output to [AnimationStreamSource.PreviousInputs](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/previousinputs.md), the [AnimationStream](/engine/7000.0/script-reference/unityengine/animations/animationstream.md) of this output initalizes every frame with the result of any previously evaluated outputs on the same [Animator](/engine/7000.0/script-reference/unityengine/animator.md).

If you use the graph connected to an [AnimationPlayableOutput](/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput.md) to post-process the result of other Animation graphs connected to the same [Animator](/engine/7000.0/script-reference/unityengine/animator.md), you should use [AnimationStreamSource.PreviousInputs](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/previousinputs.md). For example, if you use the [AnimationStream](/engine/7000.0/script-reference/unityengine/animations/animationstream.md) to build an Inverse Kinematics constraint to post-process the built-in [AnimatorController](/engine/7000.0/script-reference/unityeditor/animations/animatorcontroller.md), your [AnimationPlayableOutput](/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput.md) should be set to [AnimationStreamSource.PreviousInputs](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/previousinputs.md).

In order to start the [AnimationStream](/engine/7000.0/script-reference/unityengine/animations/animationstream.md) from a blank slate, you should use [AnimationStreamSource.DefaultValues](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/defaultvalues.md). For example, to build a custom animation source starting from the default pose, the [AnimationPlayableOutput](/engine/7000.0/script-reference/unityengine/animations/animationplayableoutput.md) should be set to [AnimationStreamSource.DefaultValues](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource/defaultvalues.md).

Additional Resources: [AnimationStreamSource](/engine/7000.0/script-reference/unityengine/animations/animationstreamsource.md)
