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

    • name: string
    • enabled: boolean

    Returns boolean

  • Enables or disables the bone with the specified boneIndex.

    Parameters

    • boneIndex: number
    • enabled: boolean

    Returns boolean