From 3e8b8123e17155897b146be7a79aee201019e3f3 Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 23 Mar 2022 00:29:23 +0800 Subject: [PATCH] Update YooAssets.cs --- Assets/YooAsset/Runtime/YooAssets.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index c83f969..0f601e5 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -306,6 +306,16 @@ namespace YooAsset #endregion #region 资源加载接口 + /// + /// 异步加载原生文件 + /// + public static RawFileOperation LoadRawFileAsync(string location, string savePath) + { + string assetPath = ConvertLocationToAssetPath(location); + return AssetSystem.LoadRawFileAsync(assetPath, savePath); + } + + /// /// 同步加载资源对象 ///