Update YooAssets.cs

增加获取资源信息新方法
pull/31/head
hevinci 2022-07-31 22:26:33 +08:00
parent 88b9afe189
commit 75910b7558
1 changed files with 11 additions and 0 deletions

View File

@ -454,6 +454,17 @@ namespace YooAsset
return _bundleServices.GetAssetInfos(tags); return _bundleServices.GetAssetInfos(tags);
} }
/// <summary>
/// 获取资源信息
/// </summary>
/// <param name="location">资源的定位地址</param>
public static AssetInfo GetAssetInfo(string location)
{
DebugCheckInitialize();
AssetInfo assetInfo = ConvertLocationToAssetInfo(location, null);
return assetInfo;
}
/// <summary> /// <summary>
/// 获取资源路径 /// 获取资源路径
/// </summary> /// </summary>