When you first create a Blueprint Macro, a new graph will open containing an Inputs tunnel node and an Outputs tunnel node.
In the Details pane for your Blueprint Macro, you can add input and output execution and data pins. You can also set the Description, Category, and Instance Color of your Blueprint Macro.
To add input or output parameters:
Click on the New button in either the Inputs or Outputs section of the Details pane.
Name the new parameter and set its type using the dropdown menu. In this example, there is an Integer data input parameter named Score, an input execution pin named Test, and two output execution pins named Win and Lose.
The tunnel nodes in the Blueprint Macro graph will automatically update with the correct pins.
You can also set a default value by expanding the entry for the parameter.
To change the location of the pin for this parameter on the edge of the node, use the up and down arrows in the expanded Details pane entry.
To give your Blueprint Macro some functionality, connect data and execution wires to the pins of your Inputs and Outputs tunnel nodes and create a network between them.
This example Blueprint Macro checks if the score that is input into the Macro is greater than the necessary score for winning, and then triggers different output execution flows depending on
the result of the comparison. Note here that the Test and Score pins were flipped using the up and down arrows in the Details pane, to avoid wires crossing in the Blueprint Macro graph.
Unlike Functions, Macros can have more than one output execution pin, so you can have execution flow like this where different output execution pins are activated
depending on the results of graph logic. Also, you could have a Macro with no execution pins that only manipulates data, as long as the nodes within the Macro are not execution nodes.