update file system
IFileSystem新增ReadFileData方法
This commit is contained in:
@@ -32,7 +32,7 @@ namespace YooAsset
|
||||
return;
|
||||
}
|
||||
|
||||
if (LoadBundleFileOp.Result is string == false)
|
||||
if (LoadBundleFileOp.Result is RawBundle == false)
|
||||
{
|
||||
string error = "Try load AssetBundle file using load raw file method !";
|
||||
InvokeCompletion(error, EOperationStatus.Failed);
|
||||
@@ -45,7 +45,7 @@ namespace YooAsset
|
||||
// 2. 检测加载结果
|
||||
if (_steps == ESteps.Checking)
|
||||
{
|
||||
RawFilePath = LoadBundleFileOp.Result as string;
|
||||
RawBundleObject = LoadBundleFileOp.Result as RawBundle;
|
||||
InvokeCompletion(string.Empty, EOperationStatus.Succeed);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace YooAsset
|
||||
// 2. 检测加载结果
|
||||
if (_steps == ESteps.Checking)
|
||||
{
|
||||
RawFilePath = MainAssetInfo.AssetPath;
|
||||
RawBundleObject = new RawBundle(null, null, MainAssetInfo.AssetPath);
|
||||
InvokeCompletion(string.Empty, EOperationStatus.Succeed);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -46,16 +46,16 @@ namespace YooAsset
|
||||
/// </summary>
|
||||
public UnityEngine.SceneManagement.Scene SceneObject { protected set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取的原生对象
|
||||
/// </summary>
|
||||
public RawBundle RawBundleObject { protected set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 加载的场景名称
|
||||
/// </summary>
|
||||
public string SceneName { protected set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 原生文件路径
|
||||
/// </summary>
|
||||
public string RawFilePath { protected set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 引用计数
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user