---
title: Add(ref AnimationStream, in AnimationStream, float)
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/unity/animations/core/posemixer/add
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/core/posemixer/add.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:26:49.523Z
locale: en-us
---

# Add(ref AnimationStream, in AnimationStream, float)

> Adds a weighted animation stream to the mix.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

## Add(AnimationStream, AnimationStream, float)

```csharp
public void Add(ref AnimationStream output, in AnimationStream add, float weight)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream that accumulates the mixed result. Use the same stream as in the call to [Core.PoseMixer.Begin](/engine/7000.0/script-reference/unity/animations/core/posemixer/begin.md).**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream to add to the mix. It must use the same rig as `output`.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of the stream in the mix. The mixer doesn't normalize weights.

### Remarks

The method scales each continuous channel by `weight` and adds it to the output stream. Rotations are scaled and summed the same way, and `End` normalizes them. The discrete channels, such as integers and entity IDs, come from the stream with the greatest weight. The default pose that `End` adds takes part in this choice. Its weight is 1 minus the sum of all weights. For example, with the weights 0.1, 0.2, and 0.3, the default pose has the weight 0.4, so its discrete channels are used. If several streams have the same greatest weight, the stream that you added first is used.
