Ejemplo n.º 1
0
        public void Debug(BuilderConfig config)
        {
            var rootList = LoadRootAssets(config.LoadPath);
            var deptList = LoadDependenceAssets(rootList);

            //Group
            var nodeList = Group(rootList, deptList);

            //Convert
            var bundleBuildList = ConvertToBundleBulidList(nodeList);

            //WriteInfo
            ExplortAssetBundleConfig(nodeList, config.ExportPath);

            EditorUtil.ClearLog();

            foreach (var bundleBuild in bundleBuildList)
            {
                StringBuilder sb = new StringBuilder();
                sb.AppendLine(bundleBuild.assetBundleName);
                foreach (var path in bundleBuild.assetNames)
                {
                    sb.AppendLine(path);
                }
                UnityEngine.Debug.Log(sb.ToString());
            }
        }
Ejemplo n.º 2
0
        public void Excute(BuilderConfig config)
        {
            var rootList = LoadRootAssets(config.LoadPath);
            var deptList = LoadDependenceAssets(rootList);

            //Group
            var nodeList = Group(rootList, deptList);

            //Convert
            var bundleBuildList = ConvertToBundleBulidList(nodeList);

            //WriteInfo
            ExplortAssetBundleConfig(nodeList, config.ExportPath);

            //Build
            DoBuild(config.ExportPath, bundleBuildList.ToArray(), config.options, config.target);
        }