Rename LoadRawFileAsync to GetRawFileAsync

LoadRawFileAsync 方法重新命名为GetRawFileAsync
pull/9/head
hevinci 2022-04-28 22:49:55 +08:00
parent 6070e619da
commit 62f1c050ca
2 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ namespace YooAsset
/// <summary> /// <summary>
/// 获取原生文件的二进制数据 /// 获取原生文件的二进制数据
/// </summary> /// </summary>
public byte[] GetFileData() public byte[] LoadFileData()
{ {
string filePath = GetCachePath(); string filePath = GetCachePath();
if (File.Exists(filePath) == false) if (File.Exists(filePath) == false)
@ -40,7 +40,7 @@ namespace YooAsset
/// <summary> /// <summary>
/// 获取原生文件的文本数据 /// 获取原生文件的文本数据
/// </summary> /// </summary>
public string GetFileText() public string LoadFileText()
{ {
string filePath = GetCachePath(); string filePath = GetCachePath();
if (File.Exists(filePath) == false) if (File.Exists(filePath) == false)

View File

@ -361,11 +361,11 @@ namespace YooAsset
#region 资源加载接口 #region 资源加载接口
/// <summary> /// <summary>
/// 异步加载原生文件 /// 异步获取原生文件
/// </summary> /// </summary>
/// <param name="location">资源的定位地址</param> /// <param name="location">资源的定位地址</param>
/// <param name="copyPath">拷贝路径</param> /// <param name="copyPath">拷贝路径</param>
public static RawFileOperation LoadRawFileAsync(string location, string copyPath = null) public static RawFileOperation GetRawFileAsync(string location, string copyPath = null)
{ {
string assetPath = _locationServices.ConvertLocationToAssetPath(_playMode, location); string assetPath = _locationServices.ConvertLocationToAssetPath(_playMode, location);
if (_playMode == EPlayMode.EditorPlayMode) if (_playMode == EPlayMode.EditorPlayMode)