Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

While loop node

Repeatedly run a set of actions while a condition is true.
Read time 1 minuteLast updated 2 days ago

Use the While loop node to run actions repeatedly within a single frame, as long as the condition is true. All iterations happen immediately in that frame. To stop the loop, you must set the condition to false. If the condition never becomes false, the application can stall. A built-in safety limit stops the loop after 1000 iterations in one frame.

Sockets

Socket

Type

Description

Condition
Bool
The true/false check that controls the loop. Iterations run immediately while true. You must set this to false to stop execution.
Then
Event
(output)
Fires once per iteration during the current frame, for as long as the condition remains true (up to 1000 iterations).