FSM: Iterate through list

NodeCanvas Forums Support FSM: Iterate through list

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17253

    In an FSM, how do I easily iterate through a list of objects? Either to set them all active/inactive, or call a function on all of them, etc.?


    Hello and sorry for the late reply.
    In an FSMs there is no built-in way of iterating a list of objects like for example the iterator node that the BTs have (if that is what you meant). I can create a new Action to do that though, I have added this in the roadmap 🙂
    Thank you for your suggestion.

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


    Got it! Yeah that would be awesome, specifically with the ability to call ExecuteMethod on each item you iterate through.

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