add_canvas_panel_to_widget
Add a Canvas Panel to a Widget Blueprint to enable absolute positioning of child widgets, allowing drag-and-drop placement anywhere in the UI.
Instructions
Add a Canvas Panel to a Widget Blueprint (free-placement layout).
From Ch. 7: Canvas Panel allows absolute positioning of child widgets (drag and drop anywhere). It's the default root panel for most UMG widgets.
Args: widget_name: Widget Blueprint name panel_name: Component name for the Canvas Panel
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_canvas_panel_to_widget(widget_name="/Game/MCP_Test/WBP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| panel_name | No | CanvasPanel | |
| widget_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |