Importing Humanoid Animations

De TriLib
Ir para navegação Ir para pesquisar

TriLib offers a versatile range of animation importing options, all of which can be easily configured using the AssetLoaderOptions.AnimationType field:

  • Legacy: Using this animation importing type, TriLib will create Animation Clips for the loaded model (if it contains animations) and add an "Animation" component to the loaded Game Object.
  • Generic: Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the AssetLoaderOptionss.AvatarDefinition value:
    • CreateFromThisModel: TriLib adds an "Animator" component to the loaded Game Object, creates a generic avatar for the loaded model, and uses it at the "Animator" component.
    • CopyFromOtherAvatar: TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at AssetLoaderOptions.Avatar at the "Animator" component.
  • Humanoid: Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the AssetLoaderOptionss.AvatarDefinition value:
    • CreateFromThisModel: TriLib adds an "Animator" component to the loaded Game Object, creates a humanoid avatar for the loaded model using the Avatar Mapper set at the AssetLoaderOptions.HumanoidAvatarMapper field, and uses it at the "Animator" component.
    • CopyFromOtherAvatar: TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at AssetLoaderOptions.Avatar at the "Animator" component.

TriLib cannot import generic or humanoid animations due to a Unity engine limitation. However, we are actively working on a side project that will soon enable humanoid animation importing.