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

static function GetTextMetaDataPathFromAssetPath(path: string): string;
static string GetTextMetaDataPathFromAssetPath(string path);
static def GetTextMetaDataPathFromAssetPath(path as string) as string

Parameters

pathThe path to the asset.

Returns

string The path to the .meta text file or empty string if the file does not exist.

Description

Gets the path to the text .meta file associated with an asset.