tuyoogame / YooAsset

unity3d resources management system
https://www.yooasset.com/
Apache License 2.0
2.37k stars 466 forks source link

2.0.3-preview 不再支持rawfile和bundle在一个package中了? #216

Closed EasierLu closed 9 months ago

EasierLu commented 9 months ago

ResourcePackage.cs

[Conditional("DEBUG")]
private void DebugCheckRawFileLoadMethod(string method)
{
    if (_playModeImpl.ActiveManifest.BuildPipeline != EDefaultBuildPipeline.RawFileBuildPipeline.ToString())
    {
        throw new Exception($"Cannot load asset bundle file using {method} method !");
    }
}

[Conditional("DEBUG")]
private void DebugCheckAssetLoadMethod(string method)
{
    if (_playModeImpl.ActiveManifest.BuildPipeline == EDefaultBuildPipeline.RawFileBuildPipeline.ToString())
    {
        throw new Exception($"Cannot load raw file using {method} method !");
    }
}

似乎互斥了 另外文档似乎还是旧的

RSJWY commented 9 months ago

开发者在群里说过,将在12月底发布2.0版本并更新文档,rawfile将使用单独RawFileBuildPipeline进行构建。 引用作者原话: “拆开 主要是几个目的,底层代码好维护,资源构建划分更清晰。上层业务逻辑上,如果你只是改变了代码逻辑,不用重建整个工程目录。”