
In this example, we show several different types of Flow Control. Flow Control nodes exist as a way to provide explicit control of the flow of execution in your Blueprint scripts. Many different types of flow control exist, such as:
- Branch - allows you to execute one of a pair of scripts based on the result of a Boolean value.
- Sequence - Allows any number of scripts to execute in a specific order.
- Switch - Allows for execution paths to be selected based on the result of an enumeration.
There are many other types available, and can be found under the Flow Control category when creating Blueprints.
Construction Script
The Construction Script for this example creates and sets a Dynamic Material Instance, and then uses a Branch Flow Control node to determine what color to apply to the dynamic Material. The Branch is powered by a Boolean variable named Branch Condition which has been made public and can be edited in the Details panel.