// 根据 targets 遍历产生所有实际资源列表 assets public static bool ScanBundle(BundleBuilderData data, BundleBuilderData.BundleInfo bundle) { if (!bundle.enabled) { return(false); } foreach (var target in bundle.targets) { if (target.enabled) { Scan(data, bundle, target); } } bundle.Slice(); return(true); }
// 根据 targets 遍历产生所有实际资源列表 assets public static bool ScanBundle(BundleBuilderData data, BundleBuilderData.BundleInfo bundle) { if (!bundle.enabled) { return(false); } foreach (var targetAsset in bundle.targets) { if (targetAsset.enabled /*&& targetAsset.IsBuildPlatform(buildPlatform)*/) { Scan(data, bundle, targetAsset.target, targetAsset.platform); } } if (bundle.Slice(data)) { data.MarkAsDirty(); } return(true); }