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

# AvatarMaskExtensions

> Extension methods for avatar masks that give access to the weight mask of an avatar mask.

## Definition

* **Type:** Class
* **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 static class AvatarMaskExtensions
```

## Remarks

Call [AvatarMaskExtensions.ToWeightMaskReference](/engine/7000.0/script-reference/unity/animations/avatarmaskextensions/toweightmaskreference.md) to get a reference to the weight mask of an avatar mask. The weight mask has the weight of each transform of the avatar mask. Humanoid body parts aren't part of the weight mask. Read the data through [BlobObjectReference\<T>.Value](/engine/7000.0/script-reference/unityengine/blobobjectreference1/value.md), also from jobs. Call [AvatarMaskExtensions.ToWeightMaskSampler](/engine/7000.0/script-reference/unity/animations/avatarmaskextensions/toweightmasksampler.md) to get the weights of the avatar mask for a rig.

Additional Resources: [WeightMask](/engine/7000.0/script-reference/unity/animations/weightmask.md)

## Static Methods

| Method                                                                                                                  | Description                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ToWeightMaskReference](/engine/7000.0/script-reference/unity/animations/avatarmaskextensions/toweightmaskreference.md) | Acquires a reference to the weight mask of an avatar mask.                                                                                               |
| [ToWeightMaskSampler](/engine/7000.0/script-reference/unity/animations/avatarmaskextensions/toweightmasksampler.md)     | Creates a [WeightMaskSampler](/engine/7000.0/script-reference/unity/animations/weightmasksampler.md) that holds the weights of an avatar mask for a rig. |
