Transition Call Mode

Forums 💬 NodeCanvas 🗨️ General Discussion Transition Call Mode

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13052
    porters25
    Participant

      Hi,

      Transitions appear to have an experimental ‘Call Mode’ feature.  I cannot seem to find any documentation explaining what these do exactly. The call modes available to choose from appear to be ‘Normal’, ‘Stacked’ and ‘Clean’.  Normal is self explantory.  The description for ‘Stacked’ listed in the transition node is just confusing.  Although I understand the principle of ‘pushing’ and ‘popping’, I cant get my head around how this is supposed to work in the context of a NodeCanvas FSM. There is no explanation for ‘Clean’ at all.

      Is anyone able to explain these different call modes in detail?

      Cheers.

      #13053
      Gavalakis
      Keymaster

        Hello there,

        A Stacked transition stores/pushes the state (the one that just got finished) into a stack. Once the FSM encounters a finished state that has no outgoing transitions (thus nowhere else to go), an automatic transition takes place to the previously stored/stacked state (with no need for direct transition connections).

        If multiple Stacked transitions are made (thus multiple states are in the stack), then the order of such automatic transitions mentioned above, are done from the last state stacked back to the first (last in, first out).

        A “Clean” transition simply clears the stack (I should mention that in the help text). Other than that it is a normal transition.

        One of the demos in the downloadable example scenes is actually utilizing a Stacked transition as an example you might want to check out as well.

        Let me know if this helps.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.