Summary
The starting state and main state to return to when nothing else is active.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateMachine
<TKey, TState> .WithDefault
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 |