ITransition<TState> Interface

Summary

An Animancer.ITransition which creates a specific type of Animancer.AnimancerState.
graph BT Type-.->Interface0["ITransition"] click Interface0 "/animancer/api/Animancer/ITransition" Type-.->Interface1["IHasKey"] click Interface1 "/animancer/api/Animancer/IHasKey" Type-.->Interface2["IPolymorphic"] click Interface2 "/animancer/api/Animancer/IPolymorphic" Type["ITransition<TState>"] class Type type-node Implementing0["ClipTransitionSequence"]-.->Type click Implementing0 "/animancer/api/Animancer/ClipTransitionSequence" Implementing1["ManualMixerTransition<TMixer>"]-.->Type click Implementing1 "/animancer/api/Animancer/ManualMixerTransition_1" Implementing2["NamedClipTransition"]-.->Type click Implementing2 "/animancer/api/Animancer.Samples.Layers/NamedClipTransition" Implementing3["PlayableAssetTransition"]-.->Type click Implementing3 "/animancer/api/Animancer/PlayableAssetTransition" Implementing4["DirectionalClipTransition"]-.->Type click Implementing4 "/animancer/api/Animancer/DirectionalClipTransition" Implementing5["Transition<TState>"]-.->Type click Implementing5 "/animancer/api/Animancer/Transition_1" Implementing6["ControllerTransition"]-.->Type click Implementing6 "/animancer/api/Animancer/ControllerTransition" Implementing7["ClipTransition"]-.->Type click Implementing7 "/animancer/api/Animancer/ClipTransition" Implementing8["MixerTransition2D"]-.->Type click Implementing8 "/animancer/api/Animancer/MixerTransition2D" Implementing9["LinearMixerTransition"]-.->Type click Implementing9 "/animancer/api/Animancer/LinearMixerTransition" Implementing10["MixerTransition<TMixer, TParameter>"]-.->Type click Implementing10 "/animancer/api/Animancer/MixerTransition_2" Implementing11["ManualMixerTransition"]-.->Type click Implementing11 "/animancer/api/Animancer/ManualMixerTransition" Implementing12["ControllerTransition<TState>"]-.->Type click Implementing12 "/animancer/api/Animancer/ControllerTransition_1"

Syntax

public interface ITransition<out TState> : ITransition, IHasKey, IPolymorphic 
    where TState : AnimancerState

Remarks

Documentation: Transitions

Type Parameters

Name Description
TState

Properties

Name Value Summary
State TState
The state that was created by this object. Specifically, this is the state that was most recently passed into Animancer.ITransition.Apply(Animancer.AnimancerState) (usually by Animancer.AnimancerLayer.Play(Animancer.ITransition)).

Methods

Name Value Summary
CreateState() TState
Creates and returns a new TState.

Extension Methods

Name Value Summary
CreateStateAndApply(AnimancerGraph) AnimancerState
[Animancer Extension] Calls Animancer.ITransition.CreateState and Animancer.ITransition.Apply(Animancer.AnimancerState).
IsValid() bool
Returns the Animancer.ITransitionDetailed.IsValid with support for Animancer.IWrapper.
TryGetFadeDuration() float
Returns the Animancer.ITransition.FadeDuration or System.Single.NaN if it throws an exception.