FAssetThumbnailPool

Utility class for keeping track of, rendering, and recycling thumbnails rendered in Slate

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

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

Include

#include "AssetThumbnail.h"

Syntax

class FAssetThumbnailPool : public FTickableEditorObject

Remarks

Utility class for keeping track of, rendering, and recycling thumbnails rendered in Slate

Constructors

Name Description

Public function

FAssetThumbnailPool

(
    uint32 InNumInPool,
    const TAttribute< bool >& InAreRea...,
    double InMaxFrameTimeAllowance,
    uint32 InMaxRealTimeThumbnailsPerFr...
)

Constructor

Destructors

Name Description

Public function

~FAssetThumbnailPool()

Destructor to free all remaining resources

Functions

Name Description

Public function

FSlateTextur...

 

AccessTexture

(
    const FAssetData& AssetData,
    uint32 Width,
    uint32 Height
)

Accesses the texture for an object.

Public function

void

 

AddReferencer

(
    const FAssetThumbnail& AssetThumbn...
)

Adds a referencer to keep textures around as long as they are needed

Public function Const

bool

 

IsInRenderStack

(
    const TSharedPtr< FAssetThumbnail >...
)

Returns true if the thumbnail for the specified asset in the specified size is in the stack of thumbnails to render

Public function Const

bool

 

IsRendered

(
    const TSharedPtr< FAssetThumbnail >...
)

Returns true if the thumbnail for the specified asset in the specified size has been rendered

Public function

FThumbnailRe...

 

OnThumbnailRendered()

Public function

FThumbnailRe...

 

OnThumbnailRenderFailed()

Public function

void

 

PrioritizeThumbnails

(
    const TArray< TSharedPtr< FAssetThu...,
    uint32 Width,
    uint32 Height
)

Brings all items in ThumbnailsToPrioritize to the front of the render stack if they are actually in the stack

Public function

void

 

RefreshThumbnail

(
    const TSharedPtr< FAssetThumbnail >...
)

Re-renders the specified thumbnail

Public function

void

 

RemoveReferencer

(
    const FAssetThumbnail& AssetThumbn...
)

Removes a referencer to clean up textures that are no longer needed

Overridden from FTickableObjectBase

Name Description

Public function Virtual Const

TStatId

 

GetStatId()

Return the stat id to use for this tickable

Public function Virtual Const

bool

 

IsTickable()

Checks if any new thumbnails are queued

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Ticks the pool, rendering new thumbnails as needed

Classes

Name

Description

Public class

FThumbnailRendered

Register/Unregister a callback for when thumbnails are rendered

Public class

FThumbnailRenderFailed

Register/Unregister a callback for when thumbnails fail to render

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