Example #1
0
        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);
        }
Example #2
0
        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);
        }