Summary
Calls
Animancer.FSM.IState.OnExitState on the Animancer.FSM.StateMachine`1.CurrentState then changes
to the specified `key` and `state` and calls Animancer.FSM.IState.OnEnterState on it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateMachine
<TKey, TState>
Syntax
public void ForceSetState(TKey key, TState state)
Remarks
This method does not check
Animancer.FSM.IState.CanExitState or Animancer.FSM.IState.CanEnterState. To do
that, you should use Animancer.FSM.StateMachine`2.TrySetState(`0,`1) instead.
Parameters
Return Value
| Type | Description |
|---|---|
| void |