Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
20 results for WhileLoop
Macro. WARNING: can cause infinite loop if condition never becomes false.
WhileLoopUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoWhy: Function '{fn}' contains a ForLoop or WhileLoop whose condition is never reached or whose body never updates the counter. The game will freeze when this code runs. Fix: If WhileLoop: ensure the body modifies the condition variable so eventually the condition becomes false. If ForLoop: check the Index range — Last Index must be >= First Index. Add a Print String of the index inside the loop body so you can see if it's actually iterating.
Runs the loop body as long as the condition stays True. Use carefully — an always-true condition hangs the game.
Runs the loop body a fixed number of times. Exposes the current index pin for use in the body.
Exec outputs: 'Loop Body' (fires each iteration) and 'Completed' (fires after last iteration).
ForLoopUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoMacro from StandardMacros. LastIndex is inclusive (uses <=).
ForLoopUE 5.4, 5.7updated 2mo agoIterates over every element of an array, executing the loop body once per element. Use ForEachLoopWithBreak if you need an early exit.
Exec output is 'Completed' (NOT 'then'). Does not block — execution continues after Delay node fires.
DelayUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoDoNUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoForEachLoopWithBreakUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago