luckisnow 2024-12-12 16:54:42 +08:00 committed by GitHub
commit 338ae8c422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 8 deletions

View File

@ -181,7 +181,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();
} }
@ -193,6 +195,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)