AnimationGatherer Class

Summary

[Editor-Only] A system that procedurally gathers animations throughout the hierarchy without needing explicit references.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IAnimationClipCollection"] click Interface0 "/animancer/api/Animancer/IAnimationClipCollection" Type["AnimationGatherer"] class Type type-node

Syntax

public class AnimationGatherer : IAnimationClipCollection

Fields

Name Constant Value Summary
Clips
All the UnityEngine.AnimationClips that have been gathered.
logExceptions
Should exceptions thrown while gathering animations be logged? Default is false to ignore them.
static
Transitions
All the Animancer.ITransitions that have been gathered.

Methods

Name Value Summary
ClearCache() void
Clears all cached gatherers.
static
GatherAnimationClips(ICollection<AnimationClip>) void
Adds all the animations associated with this object to the `clips`.
GatherFromGameObject(GameObject) AnimationGatherer
Returns a cached Animancer.Editor.AnimationGatherer containing any UnityEngine.AnimationClips referenced by components in the same hierarchy as the `gameObject`. See Animancer.ICharacterRoot for details.
static
GatherFromGameObject(GameObject, AnimationClip[], bool) void
Fills the `clips` with any UnityEngine.AnimationClips referenced by components in the same hierarchy as the `gameObject`. See Animancer.ICharacterRoot for details.
static
GatherFromGameObject(GameObject, ICollection<AnimationClip>) void
Fills the `clips` with any UnityEngine.AnimationClips referenced by components in the same hierarchy as the `gameObject`. See Animancer.ICharacterRoot for details.
static