Update YooAssets.cs

pull/4/head
hevinci 2022-03-23 00:29:23 +08:00
parent da8d050b67
commit 3e8b8123e1
1 changed files with 10 additions and 0 deletions

View File

@ -306,6 +306,16 @@ namespace YooAsset
#endregion #endregion
#region 资源加载接口 #region 资源加载接口
/// <summary>
/// 异步加载原生文件
/// </summary>
public static RawFileOperation LoadRawFileAsync(string location, string savePath)
{
string assetPath = ConvertLocationToAssetPath(location);
return AssetSystem.LoadRawFileAsync(assetPath, savePath);
}
/// <summary> /// <summary>
/// 同步加载资源对象 /// 同步加载资源对象
/// </summary> /// </summary>