///////////////////////////////////////// public static void ExecuteBuildPackage() { EditorApplication.delayCall += BuildPackage; B.s_buildProcess = true; BuildAssistWindow.Repaint(); void BuildPackage() { using (new BuildProcessScope()) { P.SetBuildParamIndex(); try { var flag = 0x01; if (P.GetCurrentParams().buildAssetBundlesTogether) { flag |= 0x02; } BuildCommands.Build(flag); } catch (Exception e) { Debug.LogException(e); } } }; }