Class AnimatorOverrideAnimationClipMapper
Provides a mechanism for applying an AnimatorOverrideController to the animator of a loaded model while processing animation clips. This mapper is designed to work with Animator Override Controllers, allowing you to override default animation clips with custom ones.
Inheritance
Inherited Members
Namespace: TriLibCore.Mappers
Assembly: Assembly-CSharp.dll
Syntax
public class AnimatorOverrideAnimationClipMapper : AnimationClipMapper
Fields
AnimatorOverrideController
The Animator Override Controller to assign to the model’s UnityEngine.Animator. If not set, the mapper will not override the animator controller.
Declaration
public AnimatorOverrideController AnimatorOverrideController
Field Value
Type | Description |
---|---|
AnimatorOverrideController |
Methods
MapArray(AssetLoaderContext, AnimationClip[])
Declaration
public override AnimationClip[] MapArray(AssetLoaderContext assetLoaderContext, AnimationClip[] sourceAnimationClips)
Parameters
Type | Name | Description |
---|---|---|
AssetLoaderContext | assetLoaderContext | |
AnimationClip[] | sourceAnimationClips |
Returns
Type | Description |
---|---|
AnimationClip[] |
Overrides
Remarks
This method retrieves the UnityEngine.Animator component from the root GameObject in the Asset Loader Context and assigns the specified AnimatorOverrideController to it. If either the animator or the override controller is missing, a warning is issued (if enabled in the options) and the original animation clips are returned unmodified.