---
title: Blend
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/animationstreamblendingextensions/blend
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/animationstreamblendingextensions/blend.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:32:33.327Z
locale: en-us
---

# Blend

> Blends an input stream with the current stream using a blending value.

## 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)

## Blend(AnimationStream, AnimationStream, float)

Blends an input stream with the current stream using a blending value.

```csharp
public static void Blend(this ref AnimationStream stream, in AnimationStream input, float weight)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream to modify. The method stores the result in this stream.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream to blend.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of the input stream in the blend.

### Remarks

If `weight` is greater than 0, the method sets the pass and frame flags of the channels that `input` sets. If `weight` is 0 or less, the flags of the stream don't change. Flags that are already set in the stream stay set.

## Blend(AnimationStream, AnimationStream, float, AnimationStreamMask)

Blends an input stream with the current stream using a blending value and weight masks.

```csharp
public static void Blend(this ref AnimationStream stream, in AnimationStream input, float weight, in AnimationStreamMask mask)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream to modify. The method stores the result in this stream.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream to blend.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of the input stream in the blend.**** (\[AnimationStreamMask]\(/engine/7000.0/script-reference/unity/animations/animationstreammask)): The mask that scales the weight of each channel.

### Remarks

The method sets the pass and frame flags of a channel that `input` sets only if the weight of the channel in `mask`, multiplied by `weight`, is greater than 0. Channels with a combined weight of 0 keep their flags. Flags that are already set in the stream stay set.

## Blend(AnimationStream, AnimationStream, AnimationStream, float)

Blends two input streams using a blending weight value and stores the result in the animation stream.

```csharp
public static void Blend(this ref AnimationStream stream, in AnimationStream input1, in AnimationStream input2, float weight)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream that receives the result. The method overwrites its previous contents.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The first stream to blend.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The second stream to blend.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of `input2` in the blend.

### Remarks

The pass and frame flags of the stream are the flags of `input1`, plus the flags of `input2` if `weight` is greater than 0. Because the method always keeps the flags of `input1`, a channel stays flagged even when `weight` is 1.

## Blend(AnimationStream, AnimationStream, AnimationStream, float, AnimationStreamMask)

Blends two input streams using a blending weight value and weight masks. The result is stored in the animation stream.

```csharp
public static void Blend(this ref AnimationStream stream, in AnimationStream input1, in AnimationStream input2, float weight, in AnimationStreamMask mask)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The stream that receives the result. The method overwrites its previous contents.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The first stream to blend.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The second stream to blend.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The weight of `input2` in the blend.**** (\[AnimationStreamMask]\(/engine/7000.0/script-reference/unity/animations/animationstreammask)): The mask that scales the weight of each channel.

### Remarks

The pass and frame flags of the stream are the flags of `input1`, plus the flags of `input2` for the channels where the weight of the channel in `mask`, multiplied by `weight`, is greater than 0. Channels with a combined weight of 0 get only the flags of `input1`. The method always keeps the flags of `input1`, so a channel stays flagged even when its combined weight is 1.
