ue_umg_add_widget
Add a widget to a UMG panel tree by specifying blueprint path, widget class, parent panel, and optional layout slot.
Instructions
Crea un widget e lo mette sotto un pannello dell'albero.
Args:
widget_blueprint_path: es. "/Game/UI/WBP_MainMenu".
widget_class: "TextBlock", "Button", "Image", "VerticalBox",
"HorizontalBox", "CanvasPanel", "Overlay", "Border", "ProgressBar"…
parent: nome del pannello che lo conterrà; se omesso, la radice.
Dev'essere un PanelWidget: un TextBlock non può contenere nulla.
name: nome del widget, quello che si vedrà in Hierarchy e che serve
per BindWidget da C++. Se omesso lo sceglie Unreal.
slot: layout dentro il pannello, applicato subito — le stesse chiavi
di ue_umg_set_slot.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"widget_blueprint_path": "<widget_blueprint_path>",
"widget_class": "<widget_class>"
},
"name": "ue_umg_add_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slot | No | ||
| parent | No | ||
| widget_class | Yes | ||
| widget_blueprint_path | Yes |