Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/FWidgetBlueprintOperationUtils
Description
Lower-level overload that creates a Widget Blueprint directly into InParent with the given Name. Intended for asset factories that have already resolved the package and name.
| Name | CreateWidgetBlueprint |
| 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 UWidgetBlueprint * CreateWidgetBlueprint
(
UObject * InParent,
FName Name,
EBlueprintType BlueprintType,
TSubclassOf < UUserWidget > ParentClass,
TSubclassOf < UWidget > RootWidgetClass,
FName CallingContext,
bool bRegisterAndCompile
)
Parameters
| Name | Remarks |
|---|---|
| InParent | Package or outer object to create the blueprint in. |
| Name | Name for the blueprint UObject. |
| BlueprintType | Type of blueprint (typically BPTYPE_Normal). |
| ParentClass | The parent UUserWidget class. |
| RootWidgetClass | Optional root panel widget class. Pass null to leave the root unset. |
| CallingContext | Opaque context name passed to FKismetEditorUtilities (used for analytics). |
| bRegisterAndCompile | When true (default), marks the package dirty, registers missing GUIDs, compiles the blueprint, and notifies the asset registry. Pass false when the calling framework (e.g. UFactory) already handles these steps. |