Transition<TState>.

State Property

Summary

The state that was created by this object. Specifically, this is the state that was most recently passed into Animancer.Transition`1.Apply(Animancer.AnimancerState) (usually by AnimancerGraph.Play(ITransition)).
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
Transition<TState>

Syntax

public TState State { get; protected set; }

Remarks

You can use Animancer.AnimancerStateDictionary.GetOrCreate(Animancer.ITransition) or Animancer.AnimancerLayer.GetOrCreateState(Animancer.ITransition) to get or create the state for a specific object.

This property is shorthand for casting the Animancer.Transition`1.BaseState to TState.

Value

Type Description
TState