IAnimationClipCollection Interface

Summary

A variant of UnityEngine.IAnimationClipSource which uses a System.Collections.Generic.ICollection`1 instead of a System.Collections.Generic.List`1 so that it can take a System.Collections.Generic.HashSet`1 to efficiently avoid adding duplicates. Animancer.AnimancerUtilities contains various extension methods for this purpose.
graph BT Type["IAnimationClipCollection"] class Type type-node Implementing0["NamedAnimancerComponent"]-.->Type click Implementing0 "/animancer-v7-4/api/Animancer/NamedAnimancerComponent" Implementing1["Float2ControllerTransition"]-.->Type click Implementing1 "/animancer-v7-4/api/Animancer/Float2ControllerTransition" Implementing2["AnimancerPlayable.StateDictionary"]-.->Type click Implementing2 "/animancer-v7-4/api/Animancer/StateDictionary" Implementing3["MixerTransition<TMixer, TParameter>"]-.->Type click Implementing3 "/animancer-v7-4/api/Animancer/MixerTransition_2" Implementing4["ManualMixerTransition"]-.->Type click Implementing4 "/animancer-v7-4/api/Animancer/ManualMixerTransition" Implementing5["AnimancerState"]-.->Type click Implementing5 "/animancer-v7-4/api/Animancer/AnimancerState" Implementing6["RootMotion.MotionTransition"]-.->Type click Implementing6 "/animancer-v7-4/api/Animancer.Examples.Locomotion/MotionTransition" Implementing7["ManualMixerState"]-.->Type click Implementing7 "/animancer-v7-4/api/Animancer/ManualMixerState" Implementing8["ClipState"]-.->Type click Implementing8 "/animancer-v7-4/api/Animancer/ClipState" Implementing9["PlayableAssetTransition"]-.->Type click Implementing9 "/animancer-v7-4/api/Animancer/PlayableAssetTransition" Implementing10["ControllerTransition"]-.->Type click Implementing10 "/animancer-v7-4/api/Animancer/ControllerTransition" Implementing11["ControllerTransition<TState>"]-.->Type click Implementing11 "/animancer-v7-4/api/Animancer/ControllerTransition_1" Implementing12["DirectionalMixerState"]-.->Type click Implementing12 "/animancer-v7-4/api/Animancer/DirectionalMixerState" Implementing13["AnimationGatherer"]-.->Type click Implementing13 "/animancer-v7-4/api/Animancer.Editor/AnimationGatherer" Implementing14["ManualMixerTransition<TMixer>"]-.->Type click Implementing14 "/animancer-v7-4/api/Animancer/ManualMixerTransition_1" Implementing15["AnimancerPlayable"]-.->Type click Implementing15 "/animancer-v7-4/api/Animancer/AnimancerPlayable" Implementing16["CartesianMixerState"]-.->Type click Implementing16 "/animancer-v7-4/api/Animancer/CartesianMixerState" Implementing17["MixerState<TParameter>"]-.->Type click Implementing17 "/animancer-v7-4/api/Animancer/MixerState_1" Implementing18["LinearMixerState"]-.->Type click Implementing18 "/animancer-v7-4/api/Animancer/LinearMixerState" Implementing19["AnimancerPlayable.LayerList"]-.->Type click Implementing19 "/animancer-v7-4/api/Animancer/LayerList" Implementing20["DirectionalClipTransition"]-.->Type click Implementing20 "/animancer-v7-4/api/Animancer/DirectionalClipTransition" Implementing21["ControllerState"]-.->Type click Implementing21 "/animancer-v7-4/api/Animancer/ControllerState" Implementing22["AnimancerComponent"]-.->Type click Implementing22 "/animancer-v7-4/api/Animancer/AnimancerComponent" Implementing23["ClipTransitionSequence"]-.->Type click Implementing23 "/animancer-v7-4/api/Animancer/ClipTransitionSequence" Implementing24["LinearMixerTransition"]-.->Type click Implementing24 "/animancer-v7-4/api/Animancer/LinearMixerTransition" Implementing25["Float2ControllerState"]-.->Type click Implementing25 "/animancer-v7-4/api/Animancer/Float2ControllerState" Implementing26["Float1ControllerTransition"]-.->Type click Implementing26 "/animancer-v7-4/api/Animancer/Float1ControllerTransition" Implementing27["Float3ControllerTransition"]-.->Type click Implementing27 "/animancer-v7-4/api/Animancer/Float3ControllerTransition" Implementing28["ClipTransition"]-.->Type click Implementing28 "/animancer-v7-4/api/Animancer/ClipTransition" Implementing29["HybridAnimancerComponent"]-.->Type click Implementing29 "/animancer-v7-4/api/Animancer/HybridAnimancerComponent" Implementing30["MixerTransition2D"]-.->Type click Implementing30 "/animancer-v7-4/api/Animancer/MixerTransition2D" Implementing31["Float1ControllerState"]-.->Type click Implementing31 "/animancer-v7-4/api/Animancer/Float1ControllerState" Implementing32["AnimancerLayer"]-.->Type click Implementing32 "/animancer-v7-4/api/Animancer/AnimancerLayer" Implementing33["PlayableAssetState"]-.->Type click Implementing33 "/animancer-v7-4/api/Animancer/PlayableAssetState" Implementing34["Float3ControllerState"]-.->Type click Implementing34 "/animancer-v7-4/api/Animancer/Float3ControllerState"

Syntax

public interface IAnimationClipCollection

Remarks

UnityEngine.IAnimationClipSource still needs to be the main point of entry for the Animation Window, so this interface is only used internally.

Methods

Name Value Summary
GatherAnimationClips(ICollection<AnimationClip>) void
Adds all the animations associated with this object to the `clips`.