Skip to content

Format

typescript
AnimationMask.SetMask(name, mask)

class: AnimationMask

Description

Set the activity state of the specified bone in the mask by its name.

Parameters

param_nametypedescription
namestringThe name of the bone.
maskBooleanThe activity state.

Return

typedescription
void

Code Example

typescript
let uuid = "B7C290F534D8456601A72E000D30C9B5";
let mask = Resources.Load<AnimationMask>(AnimationMask, uuid);
mask.SetMask("name",true);