Skip to content

AnimationMask

extends AssetObject

The AnimationMask class is used to represent animation skeleton mask resources.

You can obtain an AnimationMask object using the following method:

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

Instance Method

AnimationMask.GetMaskByPath ( value : string ) : Boolean
Get whether the specified path of the skeleton is active in the mask.
AnimationMask.SetMask ( name : string , mask : Boolean ) : void
Set the activity state of the specified bone in the mask by its name.
AnimationMask.GetMask ( value : string ) : Boolean
Get whether the specified bone with the given name is active in the mask.
AnimationMask.SetMaskByPath ( path : string , mask : Boolean ) : void
Set the active state of the skeleton at the specified path in the mask.