bool PrefersIconThumbnail { get; set; }

robot_2Generated
code_blocksInput

Description

The PrefersIconThumbnail property indicates whether the asset type should use its icon as a thumbnail instead of any available preview image. This can be useful for asset types where the icon provides a clearer or more recognizable representation than a generated preview image.

Usage

To determine if an asset type prefers using its icon as a thumbnail, you can access the PrefersIconThumbnail property on an instance of Editor.AssetType. This property returns a boolean value.

Example

// Example of checking if an asset type prefers icon thumbnail
Editor.AssetType assetType = Editor.AssetType.Model;

if (assetType.PrefersIconThumbnail)
{
    // Use the icon as the thumbnail
    var icon = assetType.Icon64; // Example of using a 64x64 icon
}
else
{
    // Use a preview image as the thumbnail
    // var previewImage = GetPreviewImage(assetType);
}