mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 03:28:47 +00:00
update asset bundle builder
修复了SBP打包,如果包含内置资源会打包失败的问题。
This commit is contained in:
@@ -257,7 +257,10 @@ namespace YooAsset.Editor
|
|||||||
foreach (var patchBundle in patchManifest.BundleList)
|
foreach (var patchBundle in patchManifest.BundleList)
|
||||||
{
|
{
|
||||||
if (patchBundle.IsRawFile)
|
if (patchBundle.IsRawFile)
|
||||||
|
{
|
||||||
|
_cachedBundleDepends.Add(patchBundle.BundleName, new string[] { });
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (buildResultContext.Results.BundleInfos.ContainsKey(patchBundle.BundleName) == false)
|
if (buildResultContext.Results.BundleInfos.ContainsKey(patchBundle.BundleName) == false)
|
||||||
throw new Exception($"Not found bundle in SBP build results : {patchBundle.BundleName}");
|
throw new Exception($"Not found bundle in SBP build results : {patchBundle.BundleName}");
|
||||||
@@ -297,6 +300,12 @@ namespace YooAsset.Editor
|
|||||||
progressValue = 0;
|
progressValue = 0;
|
||||||
foreach (var patchBundle in patchManifest.BundleList)
|
foreach (var patchBundle in patchManifest.BundleList)
|
||||||
{
|
{
|
||||||
|
if (patchBundle.IsRawFile)
|
||||||
|
{
|
||||||
|
_cachedBundleDepends.Add(patchBundle.BundleName, new string[] { } );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
var depends = buildResultContext.UnityManifest.GetDirectDependencies(patchBundle.BundleName);
|
var depends = buildResultContext.UnityManifest.GetDirectDependencies(patchBundle.BundleName);
|
||||||
_cachedBundleDepends.Add(patchBundle.BundleName, depends);
|
_cachedBundleDepends.Add(patchBundle.BundleName, depends);
|
||||||
EditorTools.DisplayProgressBar("缓存资源包依赖列表", ++progressValue, totalCount);
|
EditorTools.DisplayProgressBar("缓存资源包依赖列表", ++progressValue, totalCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user