Navigation
API > API/Editor > API/Editor/UMGEditor
This widget can be given an asset and it will render its thumbnail. Editor-only.
| Name | UAssetThumbnailWidget |
| Type | class |
| Header File | /Engine/Source/Editor/UMGEditor/Public/Components/AssetThumbnailWidget.h |
| Include Path | #include "Components/AssetThumbnailWidget.h" |
Syntax
UCLASS (MinimalAPI)
class UAssetThumbnailWidget : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UAssetThumbnailWidget
Implements Interfaces
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetToShow | FAssetData | The asset of which to show the thumbnail. | Components/AssetThumbnailWidget.h |
|
| DisplayedWidget | TSharedPtr< SBorder > | Wraps either an error widget or the contents of FAssetThumbnail::MakeThumbnailWidget. | Components/AssetThumbnailWidget.h | |
| Resolution | FIntPoint | Desired size of the thumbnail | Components/AssetThumbnailWidget.h |
|
| ThumbnailRenderer | TSharedPtr< FAssetThumbnail > | Creates ThumbnailAssetWidget. | Components/AssetThumbnailWidget.h | |
| ThumbnailSettings | FAssetThumbnailWidgetSettings | Behaviour and style of the widget | Components/AssetThumbnailWidget.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Components/AssetThumbnailWidget.h | ||
FIntPoint GetResolution() |
Gets the resolution of the rendered thumbnail. | Components/AssetThumbnailWidget.h |
|
FAssetThumbnailWidgetSettings GetThumbnailSettings() |
Components/AssetThumbnailWidget.h |
|
|
virtual TSharedRef< SWidget > RebuildWidget() |
Components/AssetThumbnailWidget.h | ||
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/AssetThumbnailWidget.h | ||
void SetAsset
(
const FAssetData& AssetData |
Components/AssetThumbnailWidget.h |
|
|
void SetAssetByObject
(
UObject* Object |
Components/AssetThumbnailWidget.h |
|
|
void SetResolution
(
const FIntPoint& InResolution |
Sets the resolution for the rendered thumbnail. | Components/AssetThumbnailWidget.h |
|
void SetThumbnailSettings
(
const FAssetThumbnailWidgetSettings& InThumbnailSettings |
Components/AssetThumbnailWidget.h |
|
|
virtual void SynchronizeProperties() |
Components/AssetThumbnailWidget.h |