Ejemplo n.º 1
0
        private static void BuildAB(BuildTarget target, BuildParams param)
        {
            var abDir  = "Res_AB/" + target;
            var abPath = Application.dataPath + "/../" + abDir;
            var option = BuildAssetBundleOptions.None;

            option |= BuildAssetBundleOptions.ChunkBasedCompression;
            BuildHelper.CreateDir(abPath);
            BuildPipeline.BuildAssetBundles(abDir, option, target);
        }
        private static void BuildAB(BuildParams param, bool onlyBuildAB)
        {
            var abDir  = BuildHelper.GetABDir(param.target);
            var abPath = BuildHelper.GetABDirPath(param.target);
            var option = BuildAssetBundleOptions.None;

            option |= BuildAssetBundleOptions.ChunkBasedCompression;
            BuildHelper.CreateDir(abPath);
            BuildPipeline.BuildAssetBundles(abDir, option, param.target);
            BuildLog.Log("BuildAB DONE!");
        }