Summary
Calls
Animancer.FSM.IState.OnExitState
on the Animancer.FSM.StateMachine`1.CurrentState
then changes it to the
specified `state` and calls Animancer.FSM.IState.OnEnterState
on it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateMachine
<TState>
Syntax
public void ForceSetState(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`1.TrySetState(`0)
instead.
Parameters
Name | Type | Description |
---|---|---|
state | TState |
Return Value
Type | Description |
---|---|
void |