Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/FWidgetBlueprintOperationUtils
Description
Adds a widget to the blueprint's widget tree.
- If ParentWidget is null and the tree has no root, sets the new widget as the root.
- Otherwise adds to ParentWidget at ChildIndex. Returns true on success, false on failure (OutErrorMessage will contain details).
| Name | AddWidget |
| Type | function |
| Header File | /Engine/Source/Editor/UMGEditor/Public/WidgetBlueprintOperationUtils.h |
| Include Path | #include "WidgetBlueprintOperationUtils.h" |
| Source | /Engine/Source/Editor/UMGEditor/Private/WidgetBlueprintOperationUtils.cpp |
static bool AddWidget
(
UWidgetBlueprint * WidgetBlueprint,
UWidget * NewWidget,
UWidget * ParentWidget,
int32 ChildIndex,
FText & OutErrorMessage
)