I want to call some functions right before a state exits out of a state. Is the only way to do this is to use IStateCallbackReceiver to manually check which state was exited from? Or is an OnExit action I can use in the FSM editor?
If you are assigning custom Action Tasks in an FSM Action State, then you can use the OnStop override in that Action Task, which is (also) called when the state exits. There is also a special node called “Super Action State”, which provides a separate actions lists for when the state enters, updates as well as exits. Please let me know if either works for you.