Summary
Creates and returns a new
Animancer.AnimancerState defuned by this transition.- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- ITransition
Syntax
AnimancerState CreateState()
Remarks
The first time a transition is used on an object, this method creates a state
which is registered in the internal dictionary using the
Animancer.IHasKey.Key
so that it can be reused later on.
Methods like Animancer.AnimancerLayer.Play(Animancer.ITransition) will also call Animancer.ITransition.Apply(Animancer.AnimancerState),
so if you call this method manually you may want to call that method as well.
Or you can just use Animancer.AnimancerUtilities.CreateStateAndApply(Animancer.ITransition,Animancer.AnimancerGraph).
Return Value
| Type | Description |
|---|---|
| AnimancerState |