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

◆ Get() [1/3]

static Path Get ( [NotNull] Object asset)
static

Gets the relative path of an asset.

Parameters
assetInstance 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 80 of file Asset.Path.Static.cs.

81 {
82 var path = AssetDatabase.GetAssetPath(asset);
83 return String.IsNullOrEmpty(path) ? null : (Path)path;
84 }

Referenced by Asset.Path.Path(), Asset.VersionControl.CanMakeEditable(), Asset.Path.CreateFolders(), Asset.Path.Get(), Asset.File.GetMainType(), and Asset.File.LoadMain< T >().

+ Here is the caller graph for this function: