mirror of https://github.com/tuyoogame/YooAsset
Rename LoadRawFileAsync to GetRawFileAsync
LoadRawFileAsync 方法重新命名为GetRawFileAsyncpull/9/head
parent
6070e619da
commit
62f1c050ca
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
@ -396,7 +396,7 @@ namespace YooAsset
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 同步加载资源对象
|
/// 同步加载资源对象
|
||||||
|
|
Loading…
Reference in New Issue