Navigation
API > API/Editor > API/Editor/UMGEditor
The Widget reference is a useful way to hold onto the selection in a way that allows for up to date access to the current preview object. Because the designer could end up rebuilding the preview, it's best to hold onto an FWidgetReference.
| Name | FWidgetReference |
| Type | struct |
| Header File | /Engine/Source/Editor/UMGEditor/Public/WidgetReference.h |
| Include Path | #include "WidgetReference.h" |
Syntax
struct FWidgetReference
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| WidgetReference.h | |||
FWidgetReference
(
TSharedPtr< FWidgetBlueprintEditor > WidgetEditor, |
WidgetReference.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FWidgetBlueprintEditor | friend | WidgetReference.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| TemplateHandle | TSharedPtr< FWidgetHandle > | WidgetReference.h | ||
| WidgetEditor | TWeakPtr< FWidgetBlueprintEditor > | WidgetReference.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWidget * GetPreview() |
WidgetReference.h | ||
TSharedPtr< SWidget > GetPreviewSlate() |
WidgetReference.h | ||
UWidget * GetTemplate() |
WidgetReference.h | ||
TSharedPtr< FWidgetBlueprintEditor > GetWidgetEditor() |
WidgetReference.h | ||
bool IsValid() |
WidgetReference.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FWidgetReference& Other |
Checks if widget reference is the different from another widget reference, based on the template pointers. | WidgetReference.h | |
bool operator==
(
const FWidgetReference& Other |
Checks if widget reference is the same as another widget reference, based on the template pointers. | WidgetReference.h |