add_vertical_box_to_widget
Add a vertical box layout container to a Widget Blueprint for stacking UI elements top-to-bottom. Configure position, size, anchoring, and auto-sizing in Unreal Editor.
Instructions
Add a Vertical Box layout container to a Widget Blueprint.
Vertical Box arranges child widgets vertically (top to bottom). Perfect for stacking buttons, labels, and stats in a menu.
Args: widget_name: Widget Blueprint name box_name: Component name for the Vertical Box position: [X, Y] position size: [Width, Height] anchor_preset: UMG anchor preset size_to_content: Auto-size to fit children
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_vertical_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 | TopLeft | |
| size_to_content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |