Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

AssetDatabase.GetCachedIcon

static function GetCachedIcon(path: string): Texture;
static Texture GetCachedIcon(string path);
static def GetCachedIcon(path as string) as Texture

Description

Retrieves an icon for the asset at the given asset path.