diff --git a/Assets/YooAsset/Runtime/AssetSystem/Operations/RawFileOperation.cs b/Assets/YooAsset/Runtime/AssetSystem/Operations/RawFileOperation.cs index 909be51..a0436ad 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/Operations/RawFileOperation.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/Operations/RawFileOperation.cs @@ -29,7 +29,7 @@ namespace YooAsset /// /// 获取原生文件的二进制数据 /// - public byte[] GetFileData() + public byte[] LoadFileData() { string filePath = GetCachePath(); if (File.Exists(filePath) == false) @@ -40,7 +40,7 @@ namespace YooAsset /// /// 获取原生文件的文本数据 /// - public string GetFileText() + public string LoadFileText() { string filePath = GetCachePath(); if (File.Exists(filePath) == false) diff --git a/Assets/YooAsset/Runtime/YooAssets.cs b/Assets/YooAsset/Runtime/YooAssets.cs index 0c2062f..e328466 100644 --- a/Assets/YooAsset/Runtime/YooAssets.cs +++ b/Assets/YooAsset/Runtime/YooAssets.cs @@ -361,11 +361,11 @@ namespace YooAsset #region 资源加载接口 /// - /// 异步加载原生文件 + /// 异步获取原生文件 /// /// 资源的定位地址 /// 拷贝路径 - public static RawFileOperation LoadRawFileAsync(string location, string copyPath = null) + public static RawFileOperation GetRawFileAsync(string location, string copyPath = null) { string assetPath = _locationServices.ConvertLocationToAssetPath(_playMode, location); if (_playMode == EPlayMode.EditorPlayMode) @@ -396,7 +396,7 @@ namespace YooAsset throw new NotImplementedException(); } } - + /// /// 同步加载资源对象