예제 #1
0
 public static void TestBuildAllAsset()
 {
     Debug.Log("开始打包");
     AssetDatabase.SaveAssets();
     AssetBundleBuild[] buildMap = GetBuildFileListNew(buildRootPath);
     FilePathTools.createFolder(exportPath);
     BuildPipeline.BuildAssetBundles(exportPath, buildMap, BuildAssetBundleOptions.DeterministicAssetBundle, buildTarget);
     Debug.Log("打包完毕");
 }
예제 #2
0
 public static void buildAllAsset()
 {
     AssetBundleBuild[] buildMap = getBuildFileList(buildRootPath);
     FilePathTools.createFolder(exportPath);
     BuildPipeline.BuildAssetBundles(exportPath, buildMap, BuildAssetBundleOptions.DeterministicAssetBundle, buildTarget);
 }