CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ Get() [3/3]

static Path Get ( GUID guid)
static

Gets the relative path of an asset.

Parameters
guidGUID of an asset.
Returns
The relative path to the asset file, or null if the object is not an asset.
See also

Definition at line 96 of file Asset.Path.Static.cs.

97 {
98 var path = AssetDatabase.GUIDToAssetPath(guid);
99 return String.IsNullOrEmpty(path) ? null : (Path)path;
100 }