WeightMaskBuilder
Helper to create a WeightMask.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Struct
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
- Implements: IDisposable
[BurstCompile]public struct WeightMaskBuilder : IDisposable
Constructors
Constructor | Description |
|---|---|
| WeightMaskBuilder(Unity.Collections.Allocator,System.Single,System.Single) | WeightMaskBuilder constructor. |
Properties
Property | Description |
|---|---|
| DefaultGenericWeight | The weight of the float, integer, and entity ID channels that have no explicit mask. |
| DefaultTransformWeight | The weight of the transform channels that have no explicit mask. |
| IsCreated | Returns true if the WeightMaskBuilder has been properly created. |
Methods
Method | Description |
|---|---|
| Clear | Clear all WeightMaskBuilder data. |
| Dispose | Disposes the WeightMaskBuilder. |
| SetEntityIdMask | Sets the weight mask of an object channel. |
| SetFloatMask | Sets the weight mask of a float channel. |
| SetIntMask | Sets the weight mask of an int channel. |
| SetRotationMask | Sets the weight mask of a rotation channel. |
| SetScaleMask | Sets the weight mask of a scale channel. |
| SetTransformMask | Sets the weight of a transform, and optionally of its children. |
| SetTranslationMask | Sets the weight mask of a translation channel. |
| ToWeightMask | Creates a WeightMask from the WeightMaskBuilder data. |
Static Methods
Method | Description |
|---|---|
| Create | Create WeightMaskBuilder from an AvatarMask asset. |