Pixmap GetAssetThumb( bool generateIfNotInCache )

book_4_sparkGenerated
code_blocksInput

Description

The GetAssetThumb method retrieves the thumbnail image associated with an asset. This method is part of the Editor.Asset class and returns an Editor.Pixmap object, which represents the thumbnail image.

The method takes a single parameter, generateIfNotInCache, which is a boolean. If set to true, the method will generate a new thumbnail if it is not already cached. If set to false, the method will only return a cached thumbnail, if available, and will not generate a new one.

Usage

To use the GetAssetThumb method, you need to have an instance of the Editor.Asset class. Call the method on this instance, passing a boolean value to indicate whether a new thumbnail should be generated if it is not already cached.

Example usage:

Editor.Asset myAsset = new Editor.Asset();
Editor.Pixmap thumbnail = myAsset.GetAssetThumb(true);

In this example, myAsset is an instance of Editor.Asset, and GetAssetThumb is called with true to ensure a thumbnail is generated if it is not already cached.

Example

Editor.Asset myAsset = new Editor.Asset();
Editor.Pixmap thumbnail = myAsset.GetAssetThumb(true);