Add GetAssetPath method.

增加YooAssets.GetAssetPath方法
pull/15/head
hevinci 2022-06-21 17:21:37 +08:00
parent 00688a65af
commit 3cbf891674
1 changed files with 11 additions and 0 deletions

View File

@ -426,6 +426,17 @@ namespace YooAsset
DebugCheckInitialize(); DebugCheckInitialize();
return _bundleServices.GetAssetInfos(tags); return _bundleServices.GetAssetInfos(tags);
} }
/// <summary>
/// 获取资源路径
/// </summary>
/// <param name="location">资源的定位地址</param>
/// <returns>如果location地址无效则返回空字符串</returns>
public static string GetAssetPath(string location)
{
DebugCheckInitialize();
return _locationServices.ConvertLocationToAssetPath(location);
}
#endregion #endregion
#region 场景加载 #region 场景加载