Unity - Scripting API: AssetDatabase.GUIDToAssetPath
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public static string GUIDToAssetPath(string guid);
Declaration
public static string GUIDToAssetPath(GUID guid);
Parameters
| Parameter | Description |
|---|---|
| guid | The GUID of an asset. |
Returns
string Path of the asset relative to the project folder.
Description
Gets the corresponding asset path for the supplied GUID, or an empty string if the GUID can't be found.
Returned paths are relative to the project folder, for example: "Assets/MyTextures/hello.png".