Skip to content

Commit

Permalink
Update YooAssets.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gmhevinci committed Mar 22, 2022
1 parent da8d050 commit 3e8b812
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Assets/YooAsset/Runtime/YooAssets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,16 @@ public static SceneOperationHandle LoadSceneAsync(string location, LoadSceneMode
#endregion

#region 资源加载接口
/// <summary>
/// 异步加载原生文件
/// </summary>
public static RawFileOperation LoadRawFileAsync(string location, string savePath)
{
string assetPath = ConvertLocationToAssetPath(location);
return AssetSystem.LoadRawFileAsync(assetPath, savePath);
}


/// <summary>
/// 同步加载资源对象
/// </summary>
Expand Down

0 comments on commit 3e8b812

Please sign in to comment.