TransitionAssetGenerator Class

Summary

[Editor-Only] Context menu functions for generating Animancer.TransitionAssets based on the contents of Animator Controllers.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TransitionAssetGenerator"] class Type type-node

Syntax

public static class TransitionAssetGenerator

Methods

Name Value Summary
CreateTransition(BlendTree) Object
Creates an Animancer.TransitionAssetBase from the `blendTree`.
static
GenerateTransition(AnimatorState) Object
Creates an Animancer.TransitionAssetBase from the `state`.
static
GenerateTransition(AnimatorState, BlendTree) Object
Creates an Animancer.TransitionAssetBase from the `blendTree`.
static
GenerateTransition(AnimatorStateTransition) Object
Creates an Animancer.TransitionAssetBase from the `transition`.
static
GenerateTransition(Object, Motion) Object
Creates an Animancer.TransitionAssetBase from the `motion`.
static
GenerateTransitions(AnimatorStateMachine) Object
Creates Animancer.TransitionAssetBases from all states in the `stateMachine`.
static
GetDetailsFromState(AnimatorState, ITransitionDetailed) void
Initializes the `transition` based on the `state`.
static
InitializeChildren<TTransition, TState>(TTransition, BlendTree) ChildMotion[]
Initializes the `transition` based on the UnityEditor.Animations.BlendTree.children.
static
InitializeChildren1D(BlendTree) LinearMixerTransition
Initializes the `transition` based on the UnityEditor.Animations.BlendTree.children.
static
InitializeChildren2D(BlendTree) MixerTransition2D
Initializes the `transition` based on the UnityEditor.Animations.BlendTree.children.
static
SaveTransition(Object, Object) void
Saves the `transition` in the same folder as the `originalAsset`.
static