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

# ChannelMask

> Information about which channels of an animation stream have been animated, read through AnimationStream.FrameMask or AnimationStream.PassMask.

## Definition

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

```csharp
public readonly ref struct ChannelMask
```

## Remarks

This struct references a memory block in the ECS component store, so its life cycle is limited to a local scope.

## Properties

| Property                                                                                             | Description                             |
| ---------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [EntityIdCount](/engine/7000.0/script-reference/unity/animations/channelmask/entityidcount.md)       | Returns number of entity ID channels.   |
| [FloatCount](/engine/7000.0/script-reference/unity/animations/channelmask/floatcount.md)             | Returns number of float channels.       |
| [IntCount](/engine/7000.0/script-reference/unity/animations/channelmask/intcount.md)                 | Returns number of int channels.         |
| [RotationCount](/engine/7000.0/script-reference/unity/animations/channelmask/rotationcount.md)       | Returns number of rotation channels.    |
| [ScaleCount](/engine/7000.0/script-reference/unity/animations/channelmask/scalecount.md)             | Returns number of scale channels.       |
| [TranslationCount](/engine/7000.0/script-reference/unity/animations/channelmask/translationcount.md) | Returns number of translation channels. |

## Methods

| Method                                                                                               | Description                                                                                                    |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [CountChannelBits](/engine/7000.0/script-reference/unity/animations/channelmask/countchannelbits.md) | Returns the number of channel bits that are set.                                                               |
| [HasAll](/engine/7000.0/script-reference/unity/animations/channelmask/hasall.md)                     | Returns true if all channel bits are set.                                                                      |
| [HasAny](/engine/7000.0/script-reference/unity/animations/channelmask/hasany.md)                     | Returns true if any channel bits are set.                                                                      |
| [HasNone](/engine/7000.0/script-reference/unity/animations/channelmask/hasnone.md)                   | Returns true if no channel bits are set.                                                                       |
| [IsEntityIdSet](/engine/7000.0/script-reference/unity/animations/channelmask/isentityidset.md)       | Returns true if the specified entity ID channel bit is set, indicating this channel value has been animated.   |
| [IsFloatSet](/engine/7000.0/script-reference/unity/animations/channelmask/isfloatset.md)             | Returns true if the specified float channel bit is set, indicating this channel value has been animated.       |
| [IsIntSet](/engine/7000.0/script-reference/unity/animations/channelmask/isintset.md)                 | Returns true if the specified integer channel bit is set, indicating this channel value has been animated.     |
| [IsRotationSet](/engine/7000.0/script-reference/unity/animations/channelmask/isrotationset.md)       | Returns true if the specified rotation channel bit is set, indicating this channel value has been animated.    |
| [IsScaleSet](/engine/7000.0/script-reference/unity/animations/channelmask/isscaleset.md)             | Returns true if the specified scale channel bit is set, indicating this channel value has been animated.       |
| [IsSet](/engine/7000.0/script-reference/unity/animations/channelmask/isset.md)                       | Returns true if the channel bit at specified position is set.                                                  |
| [IsTranslationSet](/engine/7000.0/script-reference/unity/animations/channelmask/istranslationset.md) | Returns true if the specified translation channel bit is set, indicating this channel value has been animated. |
