Language:
Discover
By Skill Level
By Category

FAssetThumbnailPool

Choose your OS:

Inheritance Hierarchy

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

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

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

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

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

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

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

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

GetStatId()

Return the stat id to use for this tickable

Public function Virtual

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

IsTickable()

Checks if any new thumbnails are queued

Public function Virtual

[UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2)...

 

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

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/AssetThumbnail.h