Importing Humanoid Animations: mudanças entre as edições
Ir para navegação
Ir para pesquisar
Sem resumo de edição |
Sem resumo de edição |
||
| Linha 1: | Linha 1: | ||
TriLib offers a versatile range of animation importing options, all of which can be easily configured using the <code>AssetLoaderOptions.AnimationType</code> field: | TriLib offers a versatile range of animation importing options, all of which can be easily configured using the <code>'''AssetLoaderOptions.AnimationType'''</code> field: | ||
* '''<code>Legacy</code>''': 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. | * '''<code>Legacy</code>''': 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. | ||
* '''<code>Generic</code>''': Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the <code>AssetLoaderOptionss.AvatarDefinition</code> value: | * '''<code>Generic</code>''': Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the <code>'''AssetLoaderOptionss.AvatarDefinition'''</code> value: | ||
** '''<code>CreateFromThisModel</code>''': 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. | ** '''<code>CreateFromThisModel</code>''': 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. | ||
** '''<code>CopyFromOtherAvatar</code>''': TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at <code>AssetLoaderOptions.Avatar</code> at the "Animator" component. | ** '''<code>CopyFromOtherAvatar</code>''': TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at <code>'''AssetLoaderOptions.Avatar'''</code> at the "Animator" component. | ||
* '''<code>Humanoid</code>''': Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the <code>AssetLoaderOptionss.AvatarDefinition</code> value: | * '''<code>Humanoid</code>''': Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on the <code>'''AssetLoaderOptionss.AvatarDefinition'''</code> value: | ||
** '''<code>CreateFromThisModel</code>''': 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 <code>AssetLoaderOptions.HumanoidAvatarMapper</code> field, and uses it at the "Animator" component. | ** '''<code>CreateFromThisModel</code>''': 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 <code>'''AssetLoaderOptions.HumanoidAvatarMapper'''</code> field, and uses it at the "Animator" component. | ||
** '''<code>CopyFromOtherAvatar</code>''': TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at <code>AssetLoaderOptions.Avatar</code> at the "Animator" component. | ** '''<code>CopyFromOtherAvatar</code>''': TriLib adds an "Animator" component to the loaded Game Object and uses the avatar at <code>'''AssetLoaderOptions.Avatar'''</code> 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. | 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. | ||
Edição atual tal como às 09h16min de 18 de maio de 2024
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 theAssetLoaderOptionss.AvatarDefinitionvalue: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 atAssetLoaderOptions.Avatarat the "Animator" component.
Humanoid: Using this animation importing type, TriLib does not create Animation Clips, but it does the following, depending on theAssetLoaderOptionss.AvatarDefinitionvalue: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 theAssetLoaderOptions.HumanoidAvatarMapperfield, and uses it at the "Animator" component.CopyFromOtherAvatar: TriLib adds an "Animator" component to the loaded Game Object and uses the avatar atAssetLoaderOptions.Avatarat 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.