add_set_variable
Add a set variable to an Unreal Engine Blueprint to store unique, unordered elements, preventing duplicate entries in collections.
Instructions
Add a Set variable to a Blueprint.
Sets store unique, unordered elements - useful when you need to track membership without duplicates.
Args: blueprint_name: Blueprint name variable_name: Variable name element_type: Element type (Integer, String, Name, etc.) is_exposed: Expose to editor Details panel
KB: see knowledge_base/07_DATA_STRUCTURES.md#overview Example: add_set_variable(blueprint_name="/Game/MCP_Test/BP_Example", variable_name="ExampleName", element_type="Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_exposed | No | ||
| element_type | Yes | ||
| variable_name | Yes | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |