add_set_to_array_node
Convert a Set variable into an Array node in a Blueprint to enable element iteration. Adds the node at a given graph position for automated Blueprint editing.
Instructions
Add a Set TO ARRAY node - convert a Set to an Array for iteration.
From Ch. 13: Sets don't have a GET element node, so convert to array first if you need to iterate over elements. Note: copying large object sets can be expensive.
Args: blueprint_name: Blueprint to add the node to set_variable: Set variable name to convert node_position: [X, Y] graph position
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_set_to_array_node(blueprint_name="/Game/MCP_Test/BP_Example", set_variable="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set_variable | Yes | ||
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |