StateMachine<TKey, TState>.WithDefault.

StateMachine<TKey, TState>.

TrySetDefaultState() Method

Summary

Attempts to enter the Animancer.FSM.StateMachine`2.WithDefault.DefaultKey and returns true if successful.

Syntax

public TState TrySetDefaultState()

Remarks

This method returns true immediately if the specified Animancer.FSM.StateMachine`2.WithDefault.DefaultKey is already the Animancer.FSM.StateMachine`2.CurrentKey. To allow directly re-entering the same state, use Animancer.FSM.StateMachine`2.WithDefault.TryResetDefaultState instead.

Return Value

Type Description
TState