Is there a built-in method for getting the current state? #95
-
While it's possible to get the current state using the "isActive" method and checking all the possible states, a "getActiveState" would be really nice to have. |
Beta Was this translation helpful? Give feedback.
Answered by
andrew-gresyk
Apr 11, 2024
Replies: 1 comment 1 reply
-
That's easy to do in a flat FSM, e.g. FFSM2 provides StateID Root::activeStateId(). However, a hierarchical FSM with depth of 2 or more will have more than one active state. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ari-sc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's easy to do in a flat FSM, e.g. FFSM2 provides StateID Root::activeStateId().
However, a hierarchical FSM with depth of 2 or more will have more than one active state.