Blueprint Basics to C++ in Unreal Engine 5
The Basics category maps the most common Unreal Engine 5 Blueprint flow-control nodes to their direct C++ equivalents. These are the building blocks of every Blueprint graph: conditional branching, iteration, looping over arrays, toggling state, and casting object references.
Each page shows the real C++ syntax UE5 uses, including types like int32, bool, and TArray, the templated Cast<>() function, and standard C++ keywords such as if, for, while, and break. Use these references to translate a Blueprint graph into clean, idiomatic Unreal C++.
8 nodes in this category.
Branch
The Blueprint Branch node is a standard C++if / else statement. It evaluates a bool condition and runs the True path when the condition is true, otherwise the False path.View C++ equivalent →For Loop
The Blueprint For Loop node is a C++for loop driven by an int32 index. It runs the loop body once for each value between the start and end index inclusive.View C++ equivalent →For Loop with Break
The Blueprint For Loop with Break node is a C++for loop containing a break statement. The loop stops early as soon as the break condition becomes true.View C++ equivalent →For Each Loop
The Blueprint For Each Loop node is a range-based C++for loop over a TArray. It runs the loop body once for every element in the container.View C++ equivalent →For Each Loop with Break
The Blueprint For Each Loop with Break node is a range-based C++for loop over a TArray with a break statement to exit early.View C++ equivalent →While Loop
The Blueprint While Loop node is a standard C++while loop. It repeats the loop body for as long as its bool condition stays true.View C++ equivalent →Flip Flop
The Blueprint Flip Flop node is a persistentbool member that alternates between two execution paths. Each call runs path A or path B, then flips the boolean for next time.View C++ equivalent →Cast To
The Blueprint Cast To node is the templatedCast<>() function in Unreal C++. It safely converts an object pointer to a derived type, returning nullptr if the cast fails.View C++ equivalent →