Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/FWidgetBlueprintOperationUtils
Description
Adds a UI component of the given class to the named widget. Returns the UWidget the component was added to.
| Name | AddUIComponent |
| 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 UWidget * AddUIComponent
(
UWidgetBlueprint * WidgetBlueprint,
UClass * ComponentClass,
FName WidgetName,
FText & OutErrorMessage
)