FWidgetTemplate

The widget template represents a widget or a set of widgets to create and spawn into the widget tree.

Windows
MacOS
Linux

Inheritance Hierarchy

TSharedFromThis

FWidgetTemplate

References

Module

UMGEditor

Header

/Engine/Source/Editor/UMGEditor/Public/WidgetTemplate.h

Include

#include "WidgetTemplate.h"

Syntax

class FWidgetTemplate : public TSharedFromThis< FWidgetTemplate >

Remarks

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.

Variables

Name Description

Public variable

FText

 

Name

The name of the widget template.

Constructors

Name Description

Public function

FWidgetTemplate()

Constructor

Destructors

Name Description

Public function Virtual

~FWidgetTemplate()

Functions

Name Description

Public function

UWidget *...

 

Create

(
    UWidgetTree* Tree
)

Constructs the widget template.

Public function Const

FText

 

GetCategory()

The category this template fits into.

Public function Virtual Const

void

 

GetFilterStrings

(
    TArray< FString >& OutStrings
)

Public function Virtual Const

const FSlate...

 

GetIcon()

Gets the icon to display for this widget template.

Public function Const

TSharedRef< ...

 

GetToolTip()

Gets tooltip widget for this widget template.

Public function Virtual

FReply

 

OnDoubleClicked()

The the action to perform when the template item is double clicked

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss