Navigation
API > API/Plugins > API/Plugins/VPUtilities
Version of UAssetThumbnailWidget that compiles in packaged games. In editor builds, a thumbnail widget is displayed. In packaged builds, a fallback SImage is displayed.
| Name | UVPAssetThumbnailWrapperWidget |
| Type | class |
| Header File | /Engine/Plugins/Experimental/VirtualProductionUtilities/Source/VPUtilities/Public/Widgets/VPAssetThumbnailWrapperWidget.h |
| Include Path | #include "Widgets/VPAssetThumbnailWrapperWidget.h" |
Syntax
UCLASS (DisplayName="Asset Thumbnail Widget (Editor & Game)")
class UVPAssetThumbnailWrapperWidget : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UVPAssetThumbnailWrapperWidget
Implements Interfaces
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetWidget | TObjectPtr< UObject > | The content for the editor version. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
| Content | TSharedPtr< SWidgetSwitcher > | Holds the contents: either ThumbnailRenderer or a fallback SImage. | Widgets/VPAssetThumbnailWrapperWidget.h | |
| DisplayMode | EAssetThumbnailDisplayMode | How the widget is supposed to be displayed. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
| Fallback | TSharedPtr< SImage > | The fallback image | Widgets/VPAssetThumbnailWrapperWidget.h | |
| FallbackBrush | FSlateBrush | Fallback brush to draw | Widgets/VPAssetThumbnailWrapperWidget.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Gets the widget used for displaying in editor. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
|
FIntPoint GetEditorThumbnailResolution() |
Widgets/VPAssetThumbnailWrapperWidget.h |
|
|
FSlateBrush GetFallbackBrush() |
Widgets/VPAssetThumbnailWrapperWidget.h |
|
|
void SetAsset
(
const FAssetData& AssetData |
Sets the asset to display. Has no effect in non-editor builds. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
void SetAssetByObject
(
UObject* Object |
Sets the asset to display. Has no effect in non-editor builds. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
void SetDisplayMode
(
EAssetThumbnailDisplayMode Mode |
Sets the display mode. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
void SetEditorThumbnailResolution
(
const FIntPoint& NewResolution |
Sets the resolution of the editor thumbnail | Widgets/VPAssetThumbnailWrapperWidget.h |
|
void SetFallbackBrush
(
const FSlateBrush& NewFallbackBrush |
Sets the fallback image to display. | Widgets/VPAssetThumbnailWrapperWidget.h |
|
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Widgets/VPAssetThumbnailWrapperWidget.h | ||
virtual TSharedRef< SWidget > RebuildWidget() |
Widgets/VPAssetThumbnailWrapperWidget.h | ||
virtual void SynchronizeProperties() |
Widgets/VPAssetThumbnailWrapperWidget.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Widgets/VPAssetThumbnailWrapperWidget.h |