Summary
[Animancer Extension]
Calls
Animancer.FSM.IState.OnExitState on the
Animancer.FSM.StateMachine`1.CurrentState then
changes to the specified `state` and calls
Animancer.FSM.IState.OnEnterState on it.
This method does not check
Animancer.FSM.IState.CanExitState or
Animancer.FSM.IState.CanEnterState. To do that, you should use
TrySetState instead.
Syntax
public static void ForceEnterState<TState>(this TState state)
where TState : class, IOwnedState<TState>
Type Parameters
Parameters
| Name |
Type |
Description |
| state |
TState |
|
Return Value