Documentation

Unity Engine

Download Unity

Unity Engine

WeightMaskBuilder

Helper to create a WeightMask.
Read time 1 minuteLast updated 4 hours ago

Definition

[BurstCompile]public struct WeightMaskBuilder : IDisposable

Constructors

Constructor

Description

WeightMaskBuilder(Unity.Collections.Allocator,System.Single,System.Single)WeightMaskBuilder constructor.

Properties

Property

Description

DefaultGenericWeightThe weight of the float, integer, and entity ID channels that have no explicit mask.
DefaultTransformWeightThe weight of the transform channels that have no explicit mask.
IsCreatedReturns true if the WeightMaskBuilder has been properly created.

Methods

Method

Description

ClearClear all WeightMaskBuilder data.
DisposeDisposes the WeightMaskBuilder.
SetEntityIdMaskSets the weight mask of an object channel.
SetFloatMaskSets the weight mask of a float channel.
SetIntMaskSets the weight mask of an int channel.
SetRotationMaskSets the weight mask of a rotation channel.
SetScaleMaskSets the weight mask of a scale channel.
SetTransformMaskSets the weight of a transform, and optionally of its children.
SetTranslationMaskSets the weight mask of a translation channel.
ToWeightMaskCreates a WeightMask from the WeightMaskBuilder data.

Static Methods

Method

Description

CreateCreate WeightMaskBuilder from an AvatarMask asset.