static Task<Pixmap> RenderAssetThumbnail( Asset asset )

book_4_sparkGenerated
code_blocksInput

Description

The RenderAssetThumbnail method is a static method of the Editor.Assets.AssetPreview class. It is used to generate a thumbnail image for a given asset. This method is asynchronous and returns a task that, when completed, provides a Pixmap object representing the rendered thumbnail.

Usage

To use the RenderAssetThumbnail method, you need to pass an instance of Editor.Asset as a parameter. The method will process the asset and return a Task<Editor.Pixmap> that you can await to get the resulting thumbnail image.

Example usage:

Editor.Asset myAsset = GetAsset();
Editor.Pixmap thumbnail = await Editor.Assets.AssetPreview.RenderAssetThumbnail(myAsset);
// Use the thumbnail as needed

Example

Editor.Asset myAsset = GetAsset();
Editor.Pixmap thumbnail = await Editor.Assets.AssetPreview.RenderAssetThumbnail(myAsset);
// Use the thumbnail as needed