A repetition component. 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, Last Index included. 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 should this component jump per loop. Default is 1 |
On Loop | Outputs step index on each Step increment |
On Completed | Outputs value after counter reaches the Last Index |
Here's a link to the hype that shows how to implement and use the For Loop node: