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

# WeightMaskExtensions

> Extension methods to create a WeightMaskSampler from a weight 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 WeightMaskExtensions
```

## Remarks

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

## Static Methods

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