Summary
Returns the first of the `states` which can currently be entered.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateMachine
<TState>
Syntax
public TState CanSetState(IList<TState> states)
Remarks
This requires
Animancer.FSM.IState.CanExitState on the Animancer.FSM.StateMachine`1.CurrentState and
Animancer.FSM.IState.CanEnterState on one of the `states` to both return true.
States are checked in ascending order (i.e. from [0] to [states.Count - 1]).
Parameters
| Name | Type | Description |
|---|---|---|
| states | IList |
Return Value
| Type | Description |
|---|---|
| TState |