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.
22 results for ForLoop
Why: 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 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 agoMacro. 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 agoRuns the loop body as long as the condition stays True. Use carefully — an always-true condition hangs the game.
ForEachLoopWithBreakUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoMacro. Iterates each element. LoopBody fires per element, Completed fires after all.
ForEachLoopUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 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.
Use with EventTick. DeltaTime from Tick, InterpSpeed controls how fast (e.g. 5.0).
FInterpToUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago