AvatarMaskExtensions
Extension methods for avatar masks that give access to the weight mask of an avatar mask.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Class
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static class AvatarMaskExtensions
Remarks
Call AvatarMaskExtensions.ToWeightMaskReference 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, also from jobs. Call AvatarMaskExtensions.ToWeightMaskSampler to get the weights of the avatar mask for a rig.
Additional Resources: WeightMask
Static Methods
Method | Description |
|---|---|
| ToWeightMaskReference | Acquires a reference to the weight mask of an avatar mask. |
| ToWeightMaskSampler | Creates a WeightMaskSampler that holds the weights of an avatar mask for a rig. |