// 以下方法是build script调用 public static void CreateAllBundlesFromCommand() { BundleManager.RemoveAllBundles(); // 删除InterpretedOutputPath下的文件 CleanOldBundles(); // 删除AssetBundle文件 CleanCacheBundles(); // CreateUIViewBundle(); CreateEquipBundle(); CreateAudioBundle(); // CreateLevelBundle(); CreatePlayerBundle(); CreateMonsterBundle(); CreateConfigBundle(); CreateSkillBundle(); CreateBigTexBundle(); CreateAiBundle(); CreateChildView(); CreateBigItemTex(); // CreateHeadIcons(); CreateNewbie(); CreateTavernTex(); BuildHelper.BuildAll(); BuildHelper.ExportBundleDataFileToOutput(); BuildHelper.ExportBundleBuildDataFileToOutput(); BuildHelper.ExportBMConfigerFileToOutput(); }
public static void BuildAll() { BuildHelper.BuildAll(); BuildHelper.ExportBundleDataFileToOutput(); BuildHelper.ExportBundleBuildDataFileToOutput(); BuildHelper.ExportBMConfigerFileToOutput(); BuildIIPSPack(); }
private void Update() { if (buttonPressed) { buttonPressed = false; RefreshBundlesForUI(); BuildHelper.BuildAll(); } else { colorAnimationValue = Mathf.Sin(Time.realtimeSinceStartup * 10) * 0.5f + 0.5f; Repaint(); } }
public static void BuildForDeploy(bool rebuild) { string outputPath = BuildConfiger.InterpretedOutputPath; if (!Directory.Exists(outputPath)) { Directory.CreateDirectory(outputPath); } // build bundles if (rebuild) { // rebuild ship info BMDataAccessor.BundleShipInfos.Clear(); BuildHelper.RebuildAll(); } else { BuildHelper.BuildAll(); } BuildHelper.ExportBMDatasToOutput(); BuildHelper.ExportHudConfig(); BuildHelper.ExportSceneLoadConfig(); // build all levels BuildHelper.BuildAllLevels(); // update Item Priority Window if (ItemPriorityEditor.IsOpen) { ItemPriorityEditor.Instance.LoadBundleShipInfoFile(); } else { EditorWindow.GetWindow <ItemPriorityEditor>().LoadBundleShipInfoFile(); EditorWindow.GetWindow <ItemPriorityEditor>().SortByTreeAndPriority(); EditorWindow.GetWindow <ItemPriorityEditor>().SaveBundleShipInfoFile(); EditorWindow.GetWindow <ItemPriorityEditor>().Close(); } }
void BuildAll() { BuildHelper.BuildAll(); BuildHelper.ExportBMDatasToOutput(); }