/// <summary> /// Returns the path name relative to the Assets/ folder where the asset is stored. /// All paths are relative to the project folder, for example: "Plugins/MyTextures/hello.png". /// </summary> /// <param name="assetObject"> A reference to the asset. </param> public static string GetAssetPath(Object assetObject) { return(FixRelativePath(SA_AssetDatabaseProxy.GetAssetPath(assetObject), false)); }
/// <summary> /// Returns the path name relative to the project folder where the asset is stored. /// All paths are relative to the project folder, for example: "Assets/Plugins/MyTextures/hello.png". /// </summary> /// <param name="assetObject"> A reference to the asset. </param> public static string GetProjectFolderRelativePath(Object assetObject) { return(SA_AssetDatabaseProxy.GetAssetPath(assetObject)); }