Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- FTickableObjectBase
- FTickableEditorObject
- FAssetThumbnailPool
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
| Type | Name | Description | |
|---|---|---|---|
FAssetThumbnailPool
(
uint32 InNumInPool, |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor to free all remaining resources |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSlateTexture2DRHIRef * | AccessTexture
(
const FAssetData& AssetData, |
Accesses the texture for an object. | |
| void | AddReferencer
(
const FAssetThumbnail& AssetThumbnail |
Adds a referencer to keep textures around as long as they are needed | |
| bool | IsInRenderStack
(
const TSharedPtr< FAssetThumbnail >& Thumbnail |
Returns true if the thumbnail for the specified asset in the specified size is in the stack of thumbnails to render | |
| bool | IsRendered
(
const TSharedPtr< FAssetThumbnail >& Thumbnail |
Returns true if the thumbnail for the specified asset in the specified size has been rendered | |
| FThumbnailRendered & | |||
| FThumbnailRenderFailed & | |||
| void | PrioritizeThumbnails
(
const TArray< TSharedPtr< FAssetThumbnail > >& ThumbnailsToPrioritize, |
Brings all items in ThumbnailsToPrioritize to the front of the render stack if they are actually in the stack | |
| void | RefreshThumbnail
(
const TSharedPtr< FAssetThumbnail >& ThumbnailToRefresh |
Re-renders the specified thumbnail | |
| void | RemoveReferencer
(
const FAssetThumbnail& AssetThumbnail |
Removes a referencer to clean up textures that are no longer needed | |
| void | SetRealTimeThumbnail
(
const TSharedPtr< FAssetThumbnail >& Thumbnail, |
Enables/disables realtime thumbnail behavior |
Overridden from FTickableObjectBase
| Type | Name | Description | |
|---|---|---|---|
| TStatId | GetStatId () |
Return the stat id to use for this tickable | |
| bool | IsTickable () |
Checks if any new thumbnails are queued | |
| void | Tick
(
float DeltaTime |
Ticks the pool, rendering new thumbnails as needed |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FThumbnailRendered | Register/Unregister a callback for when thumbnails are rendered | ||
| FThumbnailRenderFailed | Register/Unregister a callback for when thumbnails fail to render |
Constants
| Name | Description |
|---|---|
| CustomThumbnailTagName |