LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

AssetPreview.GetAssetPreview

public static Texture2D GetAssetPreview(Object asset);

Description

Returns a preview texture for an asset.


Description

Returns a preview texture for an instanceID of an asset.