Long running nodes
With FlowReactor version 2.0 it is possible to create nodes which run in a loop with async code.
Coroutine nodes have been deprecated since version 2
Example 1
This will run the node as long as its graph owner stays active. Use a sub-graph to activate / deactive such nodes.
Example 2
It is also possible to execute the next connected node while still running itself.
First we call ExecuteNext() to execute the connected node, then we run our loop. If the node gets deactivated, we call StopExecution to make sure the node highlight gets deactivated.
Last updated