The DumpThumbnail
method is responsible for rendering the thumbnail of an asset and saving it to disk. This method is asynchronous and returns a Task
, allowing it to be awaited in an asynchronous programming model.
The DumpThumbnail
method is responsible for rendering the thumbnail of an asset and saving it to disk. This method is asynchronous and returns a Task
, allowing it to be awaited in an asynchronous programming model.
To use the DumpThumbnail
method, you need to call it on an instance of the Editor.Asset
class. Since it is an asynchronous method, you should await its completion in an async method or handle the returned Task
appropriately.
// Example of using DumpThumbnail in an async method public async Task SaveAssetThumbnailAsync(Editor.Asset asset) { await asset.DumpThumbnail(); // Additional logic after the thumbnail has been dumped }