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

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