bool HasCachedThumbnail { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The HasCachedThumbnail property indicates whether the asset has a cached thumbnail available. This is useful for determining if a thumbnail image is already stored and can be quickly retrieved without needing to regenerate it.

Usage

Use the HasCachedThumbnail property to check if an asset's thumbnail is already cached. This can help optimize performance by avoiding unnecessary thumbnail generation.

Example

// Example of checking if an asset has a cached thumbnail
Editor.Asset asset = GetAsset();
if (asset.HasCachedThumbnail)
{
    // Use the cached thumbnail
    Editor.Pixmap thumbnail = asset.GetAssetThumb(false);
    // Display or process the thumbnail
}
else
{
    // Handle the case where there is no cached thumbnail
    // Possibly generate a new thumbnail
}