Navigation
API > API/Editor > API/Editor/UMGEditor > API/Editor/UMGEditor/Templates
Inheritance Hierarchy
- TSharedFromThis
- FWidgetTemplate
- FWidgetTemplateClass
- FWidgetTemplateBlueprintClass
- FWidgetTemplateImageClass
References
| Module | UMGEditor |
| Header | /Engine/Source/Editor/UMGEditor/Public/Templates/WidgetTemplateClass.h |
| Include | #include "Templates/WidgetTemplateClass.h" |
Syntax
class FWidgetTemplateClass : public FWidgetTemplate
Remarks
A template that can spawn any widget derived from the UWidget class.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TWeakObjectPtr< UClass > | CachedParentClass | Parent Class of this widget template, may not be valid | |
| FAssetData | WidgetAssetData | The asset data for the widget blueprint | |
| TWeakObjectPtr< UClass > | WidgetClass | The widget class that will be created by this template |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Creates a widget template class without any class reference | |||
FWidgetTemplateClass
(
TSubclassOf< UWidget > InWidgetClass |
Constructor | ||
FWidgetTemplateClass
(
const FAssetData& InWidgetAssetData, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UWidget * | CreateNamed
(
UWidgetTree* Tree, |
Constructs the widget template with an overridden object name. | |
| const FAssetData & | Returns the asset data for this widget which might be invalid. | ||
| TWeakObjectPtr< UClass > | Gets the WidgetClass which might be null. | ||
| void | OnObjectsReplaced
(
const TMap< UObject*, UObject* >& ReplacementMap |
Called when objects need to be swapped out for new versions, like after a blueprint recompile. |
Overridden from FWidgetTemplate
| Type | Name | Description | |
|---|---|---|---|
| UWidget * | Create
(
UWidgetTree* Tree |
Creates an instance of the widget for the tree. | |
| FText | GetCategory () |
Gets the category for the widget | |
| void | GetFilterStrings
(
TArray< FString >& OutStrings |
||
| const FSlateBrush * | GetIcon () |
The icon coming from the default object of the class | |
| TSharedRef< IToolTip > | GetToolTip () |
Gets the tooltip widget for this palette item. |