widget_add_child
Add a child widget to a Widget Blueprint tree with support for UMG classes like CanvasPanel or TextBlock, and optional parent attachment for UI layout.
Instructions
Add a child widget to a Widget Blueprint tree.
Args:
widget_blueprint_path: Full Widget Blueprint asset path, e.g.
/Game/UI/WBP_HUD or /Game/UI/WBP_HUD.WBP_HUD.
child_class: Supported UMG class name such as CanvasPanel,
TextBlock, Image, ProgressBar, Button, HorizontalBox,
VerticalBox, Overlay, or SizeBox.
child_name: Name for the new child widget.
parent_name: Optional panel widget to attach under. If omitted, the
child becomes the root when no root exists, or attaches to the
root when the root is a panel.
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: widget_add_child(widget_blueprint_path="/Game/MCP_Test/BP_Example", child_class="Actor", child_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| child_name | Yes | ||
| child_class | Yes | ||
| parent_name | No | ||
| widget_blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |