Summary
Attempts to enter the specified `state` and returns true if successful.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- IStateMachine
Syntax
bool TrySetState(Object state)
Remarks
This method returns true immediately if the specified `state` is already the
Animancer.FSM.IStateMachine.CurrentState
.
To allow directly re-entering the same state, use Animancer.FSM.IStateMachine.TryResetState(System.Object)
instead.
Parameters
Name | Type | Description |
---|---|---|
state | Object |
Return Value
Type | Description |
---|---|
bool |