Navigation
API > API/Editor > API/Editor/UMGEditor
The widget template represents a widget or a set of widgets to create and spawn into the widget tree. More complicated defaults could be created by deriving from this class and registering new templates with the module.
| Name | FWidgetTemplate |
| Type | class |
| Header File | /Engine/Source/Editor/UMGEditor/Public/WidgetTemplate.h |
| Include Path | #include "WidgetTemplate.h" |
Syntax
class FWidgetTemplate : public TSharedFromThis< FWidgetTemplate >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FWidgetTemplate
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWidgetTemplate() |
Constructor | WidgetTemplate.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FWidgetTemplate() |
WidgetTemplate.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Name | FText | The name of the widget template. | WidgetTemplate.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWidget * Create
(
UWidgetTree* Tree |
Constructs the widget template. | WidgetTemplate.h | |
FText GetCategory() |
The category this template fits into. | WidgetTemplate.h | |
| WidgetTemplate.h | |||
virtual const FSlateBrush * GetIcon() |
Gets the icon to display for this widget template. | WidgetTemplate.h | |
TSharedRef< IToolTip > GetToolTip() |
Gets tooltip widget for this widget template. | WidgetTemplate.h | |
virtual FReply OnDoubleClicked() |
The the action to perform when the template item is double clicked | WidgetTemplate.h |