private static void DoBuild(BuildConfig config, BuildTarget buildTarget) { string path = config.GetBuildPath(buildTarget); Directory.CreateDirectory(path); BuildAssetBundleOptions bundleOptions = BuildAssetBundleOptions.ForceRebuildAssetBundle & BuildAssetBundleOptions.StrictMode & BuildAssetBundleOptions.ChunkBasedCompression; BuildPipeline.BuildAssetBundles(path, bundleOptions, buildTarget); }