Compare commits

...

2 Commits

Author SHA1 Message Date
luckisnow a81e3d77c0
Merge 84a336de2a into cdaa45e163 2024-11-08 10:56:09 +08:00
luran 84a336de2a FIX: fix add depend bundle tags bug 2024-09-29 17:40:20 +08:00
1 changed files with 11 additions and 8 deletions

View File

@ -180,7 +180,9 @@ namespace YooAsset.Editor
for (int index = 0; index < manifest.BundleList.Count; index++) for (int index = 0; index < manifest.BundleList.Count; index++)
{ {
var packageBundle = manifest.BundleList[index]; var packageBundle = manifest.BundleList[index];
if (_cacheBundleTags.TryGetValue(index, out var value)) foreach (var dependBundleID in packageBundle.DependIDs)
{
if (_cacheBundleTags.TryGetValue(dependBundleID, out var value))
{ {
packageBundle.Tags = value.ToArray(); packageBundle.Tags = value.ToArray();
} }
@ -192,6 +194,7 @@ namespace YooAsset.Editor
} }
} }
} }
}
private void CacheBundleTags(int bundleID, string[] assetTags) private void CacheBundleTags(int bundleID, string[] assetTags)
{ {
if (_cacheBundleTags.ContainsKey(bundleID) == false) if (_cacheBundleTags.ContainsKey(bundleID) == false)