Reply To: Having nextState for FSM

Forums 💬 NodeCanvas ⚙️ Support Having nextState for FSM Reply To: Having nextState for FSM

#17913
Gavalakis
Keymaster

    Ok I understand what you mean now.
    Even though I think it is generally not a very good design approach to handle things on exit, based on what the upcomming state would be (maybe Im wrong), it is something easy to add.
    Please do the following changes in FSM.cs just to confirm that is indeed what you are after and let me know.

    1) Add public FSMState nextState{get; private set;} in the class.
    2) In EnterState method and right after the first two checks, add nextState = newState; so that the code looks like this:

    Let me know.
    Thanks.