private void OnGUI() { GUILayout.Label("Build halper", HalperGuiStyle.getWinTitle()); DataBuildSettingsBridge bridge = BuildHelperBase.getScriptableDataBuildSettings(); DataBuildSettingProfile cur = bridge.getPlatformProfil(); GUILayout.Label("platform : " + cur.getPlatformTarget()); GUILayout.BeginHorizontal(); GUILayout.Label("zip name :"); GUILayout.TextArea(cur.getZipName()); GUILayout.EndHorizontal(); }
static public DataBuildSettingsBridge getScriptableDataBuildSettings() { string[] all = AssetDatabase.FindAssets("t:DataBuildSettingsBridge"); if (all.Length > 0) { for (int i = 0; i < all.Length; i++) { Object obj = AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(all[i]), typeof(DataBuildSettingsBridge)); DataBuildSettingsBridge data = obj as DataBuildSettingsBridge; if (data != null) { return(data); } } } else { Debug.LogWarning("no objects returned by AssetDatabase for type : DataBuildSettingsBridge"); } Debug.LogError("could not find object of type : DataBuildSettingsBridge"); return(null); }
public BuildHelperBase(bool autorun = false, bool incVersion = true, bool openFolderOnSucess = false, DataBuildSettingsBridge paramData = null) { //update data if (paramData != null) { data = paramData; } else { data = getScriptableDataBuildSettings(); } //if (data != null) applySettings(data.activeProfile); Debug.Log("starting build process"); this.auto_run = autorun; this.version_increment = incVersion; this.open_on_sucess = openFolderOnSucess; preProc = preBuildProcess(); EditorApplication.update += update_check_process; }
protected string getBuildName() { DataBuildSettingsBridge data = getScriptableDataBuildSettings(); return(data.getPlatformProfil().build_prefix); }