Reply To: Go to the previous state

NodeCanvas Forums General Discussion Go to the previous state Reply To: Go to the previous state

#13051
Gavalakis
Keymaster

Hello and sorry for the late reply due to Eastern vacation.

Currently, the previous state is already saved in the FSM (fsmOwner.behaviour.previousState).
This can be used to manually enter that state with a call to fsmOwner.behaviour.EnterState(FSMState newState);
Of course, this is definitely not the same as saying that the current FSM implementation supports stacking as in the link 🙂
Stacking support is something I’ve been looking into, although it requires a lot of changes with some of those changes creating problems with backwards compatibility, which is always a big problem. I am still looking into this though 🙂

Thanks for your suggestion!

Join us on Discord: https://discord.gg/97q2Rjh