add_activate_variant_node
Adds an ActivateVariant node to a Blueprint, enabling variant switching when UI buttons are pressed. Specify the Level Variant Sets variable, variant set, and variant to activate.
Instructions
Add an ActivateVariant node to switch variants via Blueprint.
From Ch. 20: The BP_Configurator Blueprint calls ActivateVariant to switch between product variants when buttons are pressed.
Args: blueprint_name: Blueprint to add the node to lvs_variable: Variable holding the Level Variant Sets reference variant_set_name: Name of the Variant Set to switch in variant_name: Name of the Variant to activate node_position: [X, Y] graph position
KB: see knowledge_base/17_GAME_SYSTEMS_COOKBOOK.md#overview Example: add_activate_variant_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lvs_variable | No | LevelVariantSets | |
| variant_name | No | ||
| node_position | No | ||
| blueprint_name | Yes | ||
| variant_set_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |