TriLib
Search Results for

    Show / Hide Table of Contents

    Class ByNameAnimatorOverrideAnimationClipMapper

    Implements an AnimatorOverrideAnimationClipMapper that maps animation clips by matching their names to those defined in an Animator Override Controller. This mapper uses a configurable string comparison mode and a case-insensitivity option to determine if a loaded animation clip matches a key in the override controller.

    Inheritance
    object
    Object
    ScriptableObject
    AnimationClipMapper
    AnimatorOverrideAnimationClipMapper
    ByNameAnimatorOverrideAnimationClipMapper
    Inherited Members
    AnimatorOverrideAnimationClipMapper.AnimatorOverrideController
    AnimationClipMapper.CheckingOrder
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: TriLibCore.Mappers
    Assembly: Assembly-CSharp.dll
    Syntax
    [CreateAssetMenu(menuName = "TriLib/Mappers/Animation Clip/By Name Animator Override Animation Clip Mapper", fileName = "ByNameAnimatorOverrideAnimationClipMapper")]
    public class ByNameAnimatorOverrideAnimationClipMapper : AnimatorOverrideAnimationClipMapper

    Fields

    CaseInsensitive

    Gets or sets a value indicating whether the string comparison should be case insensitive.

    Declaration
    public bool CaseInsensitive
    Field Value
    Type Description
    bool

    StringComparisonMode

    Specifies the string comparison mode for matching animation clip names against the keys in the Animator Override Controller.

    Declaration
    [Header("Left = Animator Override Clip Names, Right = Loaded Clip Names")]
    public StringComparisonMode StringComparisonMode
    Field Value
    Type Description
    StringComparisonMode
    Remarks

    This setting is used to compare the “left” side of the mapping (the names defined in the Animator Override Controller) to the “right” side (the names of the loaded animation clips).

    Methods

    MapArray(AssetLoaderContext, AnimationClip[])

    Invoked to process an array of UnityEngine.AnimationClips, allowing for modifications such as re-structuring clip data, applying custom import settings, or removing unwanted frames.

    By default, this method returns the original sourceAnimationClips unmodified. Inherit from AnimationClipMapper to perform custom logic (e.g., applying curve simplification, retargeting bone names, etc.).

    Declaration
    public override AnimationClip[] MapArray(AssetLoaderContext assetLoaderContext, AnimationClip[] sourceAnimationClips)
    Parameters
    Type Name Description
    AssetLoaderContext assetLoaderContext

    The AssetLoaderContext encapsulating model loading state and references, including loaded objects, settings, and callbacks.

    AnimationClip[] sourceAnimationClips

    The unprocessed array of UnityEngine.AnimationClip instances.

    Returns
    Type Description
    AnimationClip[]

    An array of UnityEngine.AnimationClip after processing. Could be the same array, a modified version, or a newly created set of clips.

    Overrides
    AnimatorOverrideAnimationClipMapper.MapArray(AssetLoaderContext, AnimationClip[])
    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.

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top Generated by DocFX