Summary
Attempts to enter the state registered with the specified `key` and returns it if successful.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- IKeyedStateMachine
<TKey>
Syntax
Object TryResetState(TKey key)
Remarks
This method does not check if the `key` is already the
Animancer.FSM.IKeyedStateMachine`1.CurrentKey. To do so, use
Animancer.FSM.IKeyedStateMachine`1.TrySetState(`0) instead.
Parameters
| Name | Type | Description |
|---|---|---|
| key | TKey |
Return Value
| Type | Description |
|---|---|
| Object |