Summary
Attempts to enter any of the specified `states` and returns true if successful.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- IStateMachine
Syntax
bool TrySetState(IList states)
Remarks
This method returns true and does nothing else if the
Animancer.FSM.IStateMachine.CurrentState is in the list.
To allow directly re-entering the same state, use Animancer.FSM.IStateMachine.TryResetState(System.Collections.IList) instead.
States are checked in ascending order (i.e. from [0] to [states.Count - 1]).
Parameters
| Name | Type | Description |
|---|---|---|
| states | IList |
Return Value
| Type | Description |
|---|---|
| bool |