add_text_block_to_widget
Add a configurable text block to an Unreal Engine Widget Blueprint, setting its text, canvas position, size, font size, and color.
Instructions
Add a Text Block to a Widget Blueprint.
Args: widget_name: Widget Blueprint name text_block_name: Component name for the text block text: Display text position: [X, Y] canvas position size: [Width, Height] font_size: Font size in points color: [R, G, B, A] (0.0-1.0)
KB: see knowledge_base/06_UI_UMG_SYSTEMS.md#overview Example: add_text_block_to_widget(widget_name="/Game/MCP_Test/WBP_Example", text_block_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| text | No | ||
| color | No | ||
| position | No | ||
| font_size | No | ||
| widget_name | Yes | ||
| text_block_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |