Class SkeletonMaskBuilder

The SkeletonMaskBuilder class builds a SkeletonMask for a specific skeleton.

Once all bone states are set using setBoneState the mask must be finalized by a call to finalize before the final mask can be retrieved using mask.

Hierarchy

  • FrameworkObject
    • SkeletonMaskBuilder

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Finalizes the mask. Once finalized, no more changes can be made.

    Returns boolean

  • Enables or disables the bone with the specified name.

    Parameters

    • options: {
          enabled: boolean;
          name: string;
      } | {
          boneIndex: number;
          enabled: boolean;
      }

      Options object for the function call.

    Returns boolean