add_get_all_variants_node
Adds a GetVariants node to a Blueprint to fetch all variants from a specified Variant Set, returning an array for dynamic UI generation.
Instructions
Add a GetVariants node to get all variants in a Variant Set.
From Ch. 20: Used in BP_Configurator to iterate over all variants and generate UI buttons dynamically.
Returns an array of Variant objects from the specified Variant Set.
Args: blueprint_name: Blueprint to add the node to lvs_variable: Level Variant Sets variable name variant_set_name: Variant Set to get variants from node_position: [X, Y] graph position
KB: see knowledge_base/17_GAME_SYSTEMS_COOKBOOK.md#overview Example: add_get_all_variants_node(blueprint_name="/Game/MCP_Test/BP_Example")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blueprint_name": "<blueprint_name>"
},
"name": "add_get_all_variants_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lvs_variable | No | LevelVariantSets | |
| node_position | No | ||
| blueprint_name | Yes | ||
| variant_set_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |