Navigation
API > API/Editor > API/Editor/UnrealEd
Interface for rendering a thumbnail in a slate viewport
| Name | FAssetThumbnail |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/AssetThumbnail.h |
| Include Path | #include "AssetThumbnail.h" |
Syntax
class FAssetThumbnail :
public ISlateViewport ,
public TSharedFromThis< FAssetThumbnail >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FAssetThumbnail
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAssetThumbnail
(
UObject* InAsset, |
AssetThumbnail.h | ||
FAssetThumbnail
(
const FAssetData& InAsset, |
AssetThumbnail.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FAssetThumbnail() |
AssetThumbnail.h |
Classes
| Name | Remarks |
|---|---|
| FOnAssetDataChanged |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetData | FAssetData | The asset data for the object we are rendering the thumbnail for | AssetThumbnail.h | |
| AssetDataChangedEvent | FOnAssetDataChanged | Triggered when the asset data changes | AssetThumbnail.h | |
| Height | uint32 | Height of the thumbnail | AssetThumbnail.h | |
| ThumbnailPool | TWeakPtr< FAssetThumbnailPool > | Thumbnail pool for rendering the thumbnail | AssetThumbnail.h | |
| Width | uint32 | Width of the thumbnail | AssetThumbnail.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UObject * GetAsset() |
AssetThumbnail.h | ||
const FAssetData & GetAssetData() |
AssetThumbnail.h | ||
TSharedRef< SWidget > MakeThumbnailWidget
(
const FAssetThumbnailConfig& InConfig |
AssetThumbnail.h | ||
FOnAssetDataChanged & OnAssetDataChanged() |
AssetThumbnail.h | ||
void RefreshThumbnail() |
Re-renders this thumbnail | AssetThumbnail.h | |
| Sets the asset to render the thumnail for | AssetThumbnail.h | ||
void SetAsset
(
const FAssetData& InAssetData |
Sets the asset to render the thumnail for | AssetThumbnail.h | |
void SetRealTime
(
bool bRealTime |
Updates if this thumbnail should be realtime rendered via the pool | AssetThumbnail.h |
Overridden from ISlateViewport
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIntPoint GetSize() |
AssetThumbnail.h | ||
virtual FSlateShaderResource * GetViewportRenderTargetTexture() |
AssetThumbnail.h | ||
virtual bool RequiresVsync() |
Returns true if the viewport should be vsynced. | AssetThumbnail.h |