FAssetThumbnail

Interface for rendering a thumbnail in a slate viewport

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/AssetThumbnail.h

Include

#include "AssetThumbnail.h"

Syntax

class FAssetThumbnail :
    public ISlateViewport,
    public TSharedFromThis< FAssetThumbnail >

Remarks

Interface for rendering a thumbnail in a slate viewport

Constructors

Name Description

Public function

FAssetThumbnail

(
    UObject* InAsset,
    uint32 InWidth,
    uint32 InHeight,
    const TSharedPtr< class FAssetThumb...
)

Public function

FAssetThumbnail

(
    const FAssetData& InAsset,
    uint32 InWidth,
    uint32 InHeight,
    const TSharedPtr< class FAssetThumb...
)

Destructors

Name Description

Public function

~FAssetThumbnail()

Functions

Name Description

Public function Const

UObject *...

 

GetAsset()

Public function Const

const FAsset...

 

GetAssetData()

Public function

TSharedRef< ...

 

MakeThumbnailWidget

(
    const FAssetThumbnailConfig& InCon...
)

Public function

FOnAssetData...

 

OnAssetDataChanged()

Public function

void

 

RefreshThumbnail()

Re-renders this thumbnail

Public function

void

 

SetAsset

(
    const UObject* InAsset
)

Sets the asset to render the thumnail for

Public function

void

 

SetAsset

(
    const FAssetData& InAssetData
)

Sets the asset to render the thumnail for

Overridden from ISlateViewport

Name Description

Public function Virtual Const

FIntPoint

 

GetSize()

Returns the size of the viewport

Public function Virtual Const

FSlateShader...

 

GetViewportRenderTargetTexture()

Returns a slate texture used to draw the rendered viewport in Slate.

Public function Virtual Const

bool

 

RequiresVsync()

Returns true if the viewport should be vsynced.

Classes

Name

Description

Public class

FOnAssetDataChanged

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss