This node repeats an action for the specified amount of times immediately, during a single frame.
When executed, For Loop starts a counter on First Index and increments it by the Step until it reaches Last Index.
On Loop output executes on every step, also when the value of index equals Last Index. When Last index is reached, For Loop stops and On Completed output is executed.
Execute | Executes the node |
↳ On Start | Executes the node at the start of the game |
Enabled | Enable or disable the node. Disabled nodes cannot be executed |
First Index | First index of the loop |
Last Index | Last index of the loop |
Step | The amount of indexes that the node proceeds per loop. Default is 1 |
On Loop | Sends a signal at every step (including the last step). Also outputs the current index |
On Completed | Sends a signal after the node has reached the Last Index |
Here's a link to a demo that shows how to use the For Loop node: