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.
29 results for loop
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 3mo agoExec outputs: 'Loop Body' (fires each iteration) and 'Completed' (fires after last iteration).
ForLoopUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo 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.
Iterates over every element of an array, executing the loop body once per element. Use ForEachLoopWithBreak if you need an early exit.
Exec outputs: 'Loop Body' and 'Completed'. Data outputs: 'Array Element' and 'Array Index'.
ForEachLoopUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoExits a ForEachLoopWithBreak or similar loop early. Pairs with the loop's Break pin.
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.
Internal name is K2_SetTimer not SetTimerByFunctionName.
Set Timer by Function NameUE 5.4, 5.7updated 3mo agoSplits a struct value into its individual fields (e.g. Break Vector → X, Y, Z pins). Distinct from the loop Break — see that entry.