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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slot | No | ||
| parent | No | ||
| widget_class | Yes | ||
| widget_blueprint_path | Yes |