AssetPreview

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Functions
GetAssetPreview

Returns a preview texture for an asset.

IsLoadingAssetPreview

IsLoadingAssetPreviews

GetMiniThumbnail

Returns the thumbnail for an object (like the ones you see in the project view).

GetMiniTypeThumbnail

Returns the thumbnail for the type.