---
title: WeightMaskBuilder
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/weightmaskbuilder
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/weightmaskbuilder.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:57:19.393Z
locale: en-us
---

# WeightMaskBuilder

> Helper to create a WeightMask.

## 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)
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
[BurstCompile]
public struct WeightMaskBuilder : IDisposable
```

## Constructors

| Constructor                                                                                                                                              | Description                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| [WeightMaskBuilder(Unity.Collections.Allocator,System.Single,System.Single)](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/ctor.md) | WeightMaskBuilder constructor. |

## Properties

| Property                                                                                                               | Description                                                                          |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [DefaultGenericWeight](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/defaultgenericweight.md)     | The weight of the float, integer, and entity ID channels that have no explicit mask. |
| [DefaultTransformWeight](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/defaulttransformweight.md) | The weight of the transform channels that have no explicit mask.                     |
| [IsCreated](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/iscreated.md)                           | Returns true if the WeightMaskBuilder has been properly created.                     |

## Methods

| Method                                                                                                         | Description                                                     |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Clear](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/clear.md)                           | Clear all WeightMaskBuilder data.                               |
| [Dispose](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/dispose.md)                       | Disposes the WeightMaskBuilder.                                 |
| [SetEntityIdMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/setentityidmask.md)       | Sets the weight mask of an object channel.                      |
| [SetFloatMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/setfloatmask.md)             | Sets the weight mask of a float channel.                        |
| [SetIntMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/setintmask.md)                 | Sets the weight mask of an int channel.                         |
| [SetRotationMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/setrotationmask.md)       | Sets the weight mask of a rotation channel.                     |
| [SetScaleMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/setscalemask.md)             | Sets the weight mask of a scale channel.                        |
| [SetTransformMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/settransformmask.md)     | Sets the weight of a transform, and optionally of its children. |
| [SetTranslationMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/settranslationmask.md) | Sets the weight mask of a translation channel.                  |
| [ToWeightMask](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/toweightmask.md)             | Creates a WeightMask from the WeightMaskBuilder data.           |

## Static Methods

| Method                                                                                 | Description                                        |
| -------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [Create](/engine/7000.0/script-reference/unity/animations/weightmaskbuilder/create.md) | Create WeightMaskBuilder from an AvatarMask asset. |
