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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback