Class CarbonAnimationSkeletonMaskUtility

The CarbonAnimationSkeletonMaskUtility class provides utility function.

Constructors

Methods

  • Builds a SkeletonMask using the CarbonAnimationSkeletonMaskEntry data for the specified Skeleton.

    Parameters

    • maskEntries: CarbonAnimationSkeletonMaskEntry[]

      The skeleton mask entries.

    • skeleton: Skeleton

      The skeleton to build the mask for.

    • fnOnIterateBone: ((boneIndex: number, isEnabled: boolean) => void)

      The callback to invoke for each bone with the enabled/disabled state value.

        • (boneIndex, isEnabled): void
        • Parameters

          • boneIndex: number
          • isEnabled: boolean

          Returns void

    Returns void

    The built SkeletonMask or null if no bones are disabled.