Coroutines
Nodes for logic that spans more than one frame — waiting, sequencing, and running several things at once. For the concepts behind them, read Coroutines.
Any execution path that reaches one of these becomes a coroutine, and its entry point node shows a crossed-arrows icon.
Pausing
Yield
Pauses here and continues on the next frame.
| Execution | in, out |
| Everything else | none |
The simplest way to spread work across frames. Put one inside a long loop body so a single frame does not do all the iterations at once.
Starting and stopping
StartCoroutine
Starts a second execution path that runs independently of the one that launched it.
| Title | StartCoroutine {Name} |
| Execution in | unnamed |
| Execution out | unnamed — continues immediately; CoroutineBody — the new path |
| Data in | Name — String |
| Data out | CoroutineID — Coroutine |
| Property | CoroutineMode — Stop Other, Don't Create New, Allow Overlap |
The two execution outputs are the point of this node. The unnamed one continues
straight away, while CoroutineBody runs separately and may take as long as it
likes. Keep the CoroutineID if you want to stop it or wait for it later.
StopCoroutine
| Title | StopCoroutine {Name} |
| Execution | in, out |
| Data in | CoroutineID — Coroutine; Name — String |
Stop by ID for something you started yourself, or by name to stop whatever is running under that name.
StopAllCoroutines
Stops every coroutine belonging to this script. Execution pins only.
Worth calling in OnDeactivated if a script starts long-running work — otherwise
a coroutine can outlive the thing that started it.
Waiting
WaitForAll / WaitForAny
| Execution | in, out |
| Data in | one unnamed Coroutine pin per Count |
| Property | Count — 1 to 16, default 1 |
Raise Count and the node grows an input pin for each coroutine to watch.
- WaitForAll continues once every one of them has finished.
- WaitForAny continues as soon as the first finishes — useful for racing a task against a timeout.
Coroutine modes
Every entry point and StartCoroutine carries a Coroutine Mode,
deciding what happens when a path is triggered while a previous run is still going:
| Mode | Behaviour |
|---|---|
| Stop Other | Cancel the running one and start fresh. The default |
| Don't Create New | Let the existing run finish; ignore the new trigger |
| Allow Overlap | Run both simultaneously |
See Entry Points and Events for how to choose.
Coroutine nodes from the engine
Alongside these built-ins, the engine provides ready-made coroutines that appear
under the same Coroutines category. Each has Succeeded and Failed
execution outputs:
| Node | What it does |
|---|---|
Wait | Pauses for a set duration |
MoveTo | Moves an object to a position over time |
TweenProperty | Animates a property to a target value over time |
These are the ones to reach for before writing a timing loop by hand.