コード例 #1
0
ファイル: BuildTool.cs プロジェクト: gbyh/XGame
        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);
        }
コード例 #2
0
        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!");
        }