StateMachine<TKey, TState>.

ForceSetState(TKey) Method

Summary

Uses Animancer.FSM.StateMachine`2.ForceSetState(`0,`1) to change to the state registered with the `key`. If nothing is registered, it use null and will throw an exception unless Animancer.FSM.StateMachine`1.AllowNullStates is enabled.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Containing Type
StateMachine<TKey, TState>

Syntax

public TState ForceSetState(TKey key)

Parameters

Name Type Description
key TKey

Return Value

Type Description
TState