Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UField
- UStruct
- UClass
- UBlueprintGeneratedClass
- UWidgetBlueprintGeneratedClass
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintGeneratedClass.h |
| Include | #include "Blueprint/WidgetBlueprintGeneratedClass.h" |
Syntax
class UWidgetBlueprintGeneratedClass : public UBlueprintGeneratedClass
Remarks
The widget blueprint generated class allows us to create blueprint-able widgets for UMG at runtime. All WBPGC's are of UUserWidget classes, and they perform special post initialization using this class to give themselves many of the same capabilities as AActor blueprints, like dynamic delegate binding for widgets.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TObjectPtr< UWidgetAnimation > > | Animations | ||
| TArray< FName > | AvailableNamedSlots | Available Named Slots for content in a subclass. | |
| uint32: 1 | bCanCallPreConstruct | ||
| TArray< FDelegateRuntimeBinding > | Bindings | ||
| TArray< FName > | InstanceNamedSlots | These are the set of named slots that can be used on an instance of the widget. | |
| TArray< FName > | NamedSlots | All named slots, even the ones that have content already filled into them by a parent class and are not available for extension. | |
| TMap< FName, FGuid > | NamedSlotsWithID | All named slots mapped the assigned GUID of their UNamedSlot widget. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| UWidgetBlueprintGeneratedClass * | Walks up the hierarchy looking for a valid widget tree. | ||
| void | ForEachExtension
(
Predicate Pred, |
||
| ExtensionType * | GetExtension
(
bool bIncludeSuper |
Find the first extension of the requested type. | |
| UWidgetBlueprintGeneratedClassExtension * | GetExtension
(
TSubclassOf< UWidgetBlueprintGeneratedClassExtension > InExtensionType, |
Find the first extension of the requested type. | |
| TArray< UWidgetBlueprintGeneratedClassExtension * > | GetExtensions
(
TSubclassOf< UWidgetBlueprintGeneratedClassExtension > InExtensionType, |
Find the extensions of the requested type. | |
| void | GetNamedSlotArchetypeContent
(
TFunctionRef< void(FName, UWidget*)> Predicate |
||
| UWidgetTree * | |||
| void | InitializeWidget
(
UUserWidget* UserWidget |
This is the function that makes UMG work. | |
| void | InitializeWidgetStatic
(
UUserWidget* UserWidget, |
||
| void | SetClassRequiresNativeTick
(
bool InClassRequiresNativeTick |
||
| void | SetWidgetTreeArchetype
(
UWidgetTree* InWidgetTree |
Overridden from UClass
| Type | Name | Description | |
|---|---|---|---|
| void | PurgeClass
(
bool bRecompilingOnLoad |
Purges out the properties of this class in preparation for it to be regenerated |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| bool | Called during saving to determine the load flags to save with the object. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |