Documentation

Unity Engine

Download Unity

Unity Engine

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

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

ToWeightMaskReferenceAcquires a reference to the weight mask of an avatar mask.
ToWeightMaskSamplerCreates a WeightMaskSampler that holds the weights of an avatar mask for a rig.