Contents

processAndCreateAnimation(retargeting:operations:name:)

Processes skeletal animation with the specified retargeting and operations.

Declaration

func processAndCreateAnimation(retargeting config: RetargetingConfiguration, operations: [SampledAnimation<Value>.SkeletalAnimationOperation] = [], name: String = "") throws -> any AnimationDefinition

Parameters

  • config:

    The skeletal retargeting configuration to use.

  • operations:

    Operations to perform on the animation. If empty, only retargeting is performed.

  • name:

    Name for the processed animation.

Return Value

An AnimationDefinition containing the processed animation. If root motion extraction is performed, returns an AnimationGroup containing both the skeletal animation (SampledAnimation<JointTransforms>) and extracted root motion (SampledAnimation<Transform>). Otherwise returns a SampledAnimation<JointTransforms>.

Discussion

Retargets the instance animation using the provided retargeting configuration and applies a series of skeletal animation processing operations to create a new animation definition. The function executes operations in the order specified.

See Also

Processing skeletal animations