---
title: AndMasks
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/animationstream/andmasks
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/animationstream/andmasks.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:37:04.888Z
locale: en-us
---

# AndMasks

> AND all channel masks with other AnimationStream channel masks.

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

## AndMasks(AnimationStream)

AND all channel masks with other AnimationStream channel masks.

```csharp
public void AndMasks(in AnimationStream other)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): Other AnimationStream to AND channel masks with.

## AndMasks(AnimationStream, AnimationStream)

AND all lhs and rhs AnimationStream channel masks and store result. Channel masks from lhs and rhs aren't modified.

```csharp
public void AndMasks(in AnimationStream lhs, in AnimationStream rhs)
```

### Parameters

**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The input stream whose channel masks the method combines.**** (\[AnimationStream]\(/engine/7000.0/script-reference/unity/animations/animationstream)): The input stream whose channel masks the method combines.
