add_horizontal_box_to_widget
Add a horizontal box layout container to a Widget Blueprint for side-by-side arrangement of child widgets. Specify position, size, anchor, and auto-sizing to fit content.
Instructions
Add a Horizontal Box layout container to a Widget Blueprint.
From Ch. 11 (Round Transition screen): Horizontal Box arranges child widgets horizontally (left to right). Used for side-by-side text + values.
Args: widget_name: Widget Blueprint name box_name: Component name for the Horizontal Box position: [X, Y] position size: [Width, Height] anchor_preset: UMG anchor preset ("TopLeft", "TopCenter", "Center", etc.) size_to_content: Auto-size to fit children
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_horizontal_box_to_widget(widget_name="/Game/MCP_Test/WBP_Example", box_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| box_name | Yes | ||
| position | No | ||
| widget_name | Yes | ||
| anchor_preset | No | TopCenter | |
| size_to_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |