widget_set_anchor
Set CanvasPanelSlot anchor, position, size, and alignment for a UMG widget in Unreal Engine to control its UI layout precisely.
Instructions
Set CanvasPanelSlot anchor, position, size, and alignment.
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: widget_set_anchor(widget_blueprint_path="/Game/MCP_Test/BP_Example", widget_name="/Game/MCP_Test/WBP_Example", anchor_min_x=0.0, anchor_min_y=0.0, anchor_max_x=0.0, anchor_max_y=0.0, position_x=0.0, position_y=0.0, size_x=0.0, size_y=0.0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size_x | Yes | ||
| size_y | Yes | ||
| position_x | Yes | ||
| position_y | Yes | ||
| alignment_x | No | ||
| alignment_y | No | ||
| widget_name | Yes | ||
| anchor_max_x | Yes | ||
| anchor_max_y | Yes | ||
| anchor_min_x | Yes | ||
| anchor_min_y | Yes | ||
| widget_blueprint_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |