Summary
Returns the state registered with the `transition`s
Animancer.IHasKey.Key if there is one.
Otherwise this method uses Animancer.ITransition.CreateState to create a new one
and registers it with that key before returning it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- Animancer
State Dictionary
Syntax
public AnimancerState GetOrCreate(ITransition transition)
Parameters
| Name | Type | Description |
|---|---|---|
| transition | ITransition |
Return Value
| Type | Description |
|---|---|
| AnimancerState |