StateMachine<TState>.WithDefault.

StateMachine<TState>.

DefaultState Property

Summary

The starting state and main state to return to when nothing else is active.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Containing Type
StateMachine<TState>.WithDefault

Syntax

public TState DefaultState { get; set; }

Remarks

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

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

Value

Type Description
TState