Long running nodes
Example 1
public override async void OnExecute(FlowReactorComponent _flowReactor)
{
// Run code in a loop
while(graphOwner.isActive)
{
Follow();
await Task.Yield();
}
}Example 2
public override async void OnExecute(FlowReactorComponent _flowReactor)
{
// Execute output
ExecuteNext(0, _flowReactor, true);
// Run code in loop
while(graphOwner.isActive)
{
Follow();
await Task.Yield();
}
// Deactivate node highlight, should this node get deactivated
StopExecution();
}Last updated