Contents

init(named:rootJoint:animationEvaluation:)

Creates a skeleton resource with the specified name, joint hierarchy, and animation-evaluation data.

Declaration

convenience init(named name: String, rootJoint: SkeletonResource.Joint, animationEvaluation: SkeletonResource.AnimationEvaluation = .init()) throws

Parameters

  • name:

    A unique identifier for the skeleton, used by the animation runtime to link animation clips and retargeting configurations to this skeleton.

  • rootJoint:

    The root joint of the skeleton hierarchy.

  • animationEvaluation:

    Additional animation-related skeletal data to bake into the resource. Defaults to empty.

Discussion