StateMachine<TKey, TState>.WithDefault.

StateMachine<TKey, TState>.

DefaultKey Property

Summary

The starting state and main state to return to when nothing else is active.

Syntax

public TKey DefaultKey { get; set; }

Remarks

If the CurrentState is null when setting this value, it calls Animancer.FSM.StateMachine`2.ForceSetState(`0) to enter the specified state immediately.

For a character, this would typically be their Idle state.

Value

Type Description
TKey