Exemplo n.º 1
0
        private void BuildByPlatform(BuildTarget target, bool bClear = true, bool genInfo = false)
        {
            try
            {
                InitPath();
                InitPathIdProfile(target, bClear);

                config = new BundleConfig();
                ScanRes();
                ProcessExcludeRes();

                //ProcessAllSpriteAtlas();

                bundleBuild = new BundleBuild(config);
                GenBundle();
                bundleBuild.Exec(exportPath, target, bClear);

                if (genInfo)
                {
                    OutputInfo();
                }

                ClearForBundleGen();
                Debug.Log("BuildByPlatform finish");
            }
            catch (Exception e)
            {
                EditorUtility.ClearProgressBar();
                throw;
            }
        }
Exemplo n.º 2
0
 public void SetAssetBundleName(BundleBuild build)
 {
     if (string.IsNullOrEmpty(BundleName))
     {
         return;
     }
     build.SetBundle(res, BundleName);
 }
Exemplo n.º 3
0
 private void ClearForBundleGen()
 {
     PathIdProfile.Ins.FinishUpdating();
     resList     = null;
     prefabList  = null;
     sceneList   = null;
     bundleBuild = null;
     config      = null;
     totals      = null;
 }
Exemplo n.º 4
0
 private void ClearForBundleGen()
 {
     ResDataHelp.shadersAsSingleNames.Clear();
     PathIdProfile.Ins.FinishUpdating();
     resList     = null;
     prefabList  = null;
     sceneList   = null;
     bundleBuild = null;
     config      = null;
     totals      = null;
 }