Summary
Calls
Animancer.FSM.IState.OnExitState on the Animancer.FSM.IStateMachine.CurrentState then changes it to the
specified `state` and calls Animancer.FSM.IState.OnEnterState on it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- IStateMachine
Syntax
void ForceSetState(Object state)
Remarks
This method does not check
Animancer.FSM.IState.CanExitState or
Animancer.FSM.IState.CanEnterState. To do that, you should use Animancer.FSM.IStateMachine.TrySetState(System.Object) instead.
Parameters
| Name | Type | Description |
|---|---|---|
| state | Object |
Return Value
| Type | Description |
|---|---|
| void |