Version: 1.8
LanguageEnglish
  • C#

TRetargeterUtility.BakeRetargetAnimation

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static AnimationClip BakeRetargetAnimation(Animations.TRetargeter tRetargeter, AnimationClip srcClip, Animations.RetargetClipExportOptions exportOptions);

Parameters

tRetargeter The TRetargeter instance used to perform the retargeting operation (cannot be null).
srcClip The source animation clip to be retargeted (cannot be null).
exportOptions The export configuration options that define how the retargeted clip should be processed (e.g., frame rate, root motion settings).

Returns

AnimationClip The newly created retargeted AnimationClip instance.

Description

Bakes and generates a retargeted animation clip using the specified retargeter, source animation clip, and export options.

This method processes the source animation clip through the specified retargeter, applies the configuration from exportOptions, and returns the baked retargeted animation clip. Both tRetargeter and srcClip parameters must be non-null; otherwise, an exception may be thrown.