Reply To: FSM Super Action State OnUpdateActions

Forums 💬 NodeCanvas ⚙️ Support FSM Super Action State OnUpdateActions Reply To: FSM Super Action State OnUpdateActions

#18480
feelx
Participant

    [quote quote=11240]
    As for your last question, can you please clarify what you mean? Do you mean something different than implementing the OnStateUpdate callback?
    [/quote]

    Hi,

    well I guess at the moment that’s the way to do it then (the OnstateUpdate callback). Mecanim has StateMachineBehaviours with the according callbacks so you can write your code specifically for a certain state and that state only. No checks for what state you’re in.
    Maybe that would be a way to go? To have your own Classes/MonoBehaviours for each state, if you wanted to. That would mean more files, but way more clarity.

    And again, please implement integer Hashes for the state names 🙂

    Cheers,
    Felix