Navigation
API > API/Plugins > API/Plugins/UMGWidgetPreview
| Name | FPreviewableWidgetVariant |
| Type | struct |
| Header File | /Engine/Plugins/Editor/UMGWidgetPreview/Source/UMGWidgetPreview/Public/WidgetPreview.h |
| Include Path | #include "WidgetPreview.h" |
Syntax
USTRUCT (BlueprintType )
struct FPreviewableWidgetVariant
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| WidgetPreview.h | |||
FPreviewableWidgetVariant
(
const TSubclassOf< UUserWidget >& InWidgetType |
WidgetPreview.h | ||
FPreviewableWidgetVariant
(
const UWidgetPreview* InWidgetPreview |
WidgetPreview.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ObjectPath | FSoftObjectPath | WidgetPreview.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedWidgetCDO | TObjectPtr< const UUserWidget > | WidgetPreview.h |
|
|
| CachedWidgetPreview | TWeakObjectPtr< UWidgetPreview > | WidgetPreview.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const UUserWidget * AsUserWidgetCDO () |
Returns the referenced Object as a UUserWidget (CDO). | WidgetPreview.h | |
const UWidgetPreview * AsWidgetPreview () |
Returns the referenced Object as a UWidgetPreview. | WidgetPreview.h | |
void UpdateCachedWidget() |
Flushes cached widgets and re-resolves from the ObjectPath. | WidgetPreview.h |