public static AssetBundleCollector BuildConfig(string path, string pattern, string abName) { PathUtil.EnsuerStreamingAssetFolder("config"); AssetBundleCollector collector = AssetBundleCollector.CollectAssetBundlesForFolder(GameResType.None, PathUtil.GetRelativePathToAsset(PathUtil.GetParentDir(path)), pattern, abName); collector.Build(Application.streamingAssetsPath.Combine("config")); return(collector); }
public static void Build(AssetBundleBuildConfig config, bool isGenRes = false) { OnBuildStart(config, isGenRes); AssetBundleCollector collector = Collect(config); OnCollectFinish(); if (!isGenRes) { collector.Build(Application.streamingAssetsPath); } OnBuildEnd(collector, isGenRes); }