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.GUIDToAssetPath

static function GUIDToAssetPath(guid: string): string;
static string GUIDToAssetPath(string guid);
static def GUIDToAssetPath(guid as string) as string

Description

Translate a GUID to its current asset path.

All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png".