AnimationBindings Class

Summary

[Editor-Only] Various utility functions relating to the properties animated by an UnityEngine.AnimationClip.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • AssetPostprocessor
graph BT Type-->Base0["AssetPostprocessor"] Type["AnimationBindings"] class Type type-node

Syntax

public class AnimationBindings : AssetPostprocessor

Methods

Name Value Summary
AssertIcons() void
A unit test to make sure that the icons are properly loaded.
static
ClearCache() void
Clears all cached values in this class.
static
DoBindingMatchGUI(Rect, AnimancerState) void
Draws a UnityEngine.GUI.Button(UnityEngine.Rect,UnityEngine.GUIContent,UnityEngine.GUIStyle) indicating the Animancer.Editor.AnimationBindings.MatchType of the `state` compared to the object it is being played on.

Clicking the button calls Animancer.Editor.AnimationBindings.BindingData.LogIssues(Animancer.AnimancerState,Animancer.Editor.AnimationBindings.MatchType).
static
GetAnimationType(AnimationClip) AnimationType
Determines the Animancer.Editor.AnimationType of the specified `clip`.
static
GetAnimationType(Animator) AnimationType
Determines the Animancer.Editor.AnimationType of the specified `animator`.
static
GetAnimationType(GameObject) AnimationType
Determines the Animancer.Editor.AnimationType of the specified `gameObject`.
static
GetBindings(AnimationClip) EditorCurveBinding[]
Returns a cached array of all properties animated by the specified `clip`.
static
GetBindings(GameObject, bool) AnimationBindings.BindingData
Returns a cached Animancer.Editor.AnimationBindings.BindingData representing the specified `gameObject`.
static
GetIcon(AnimationBindings.MatchType) Texture
Get an icon = corresponding to the specified Animancer.Editor.AnimationBindings.MatchType.
static
OnAnimationChanged(AnimationClip) void
Clears any cached values relating to the `clip` since they may no longer be correct.
static
OnPostprocessAnimation(GameObject, AnimationClip) void
Called when Unity imports an animation.