Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

AssetPreview.GetAssetPreview

public static Texture2D GetAssetPreview(Object asset);

Parameters

Description

Returns a preview texture for an asset.


Description

Returns a preview texture for an instanceID of an asset.