public override void OnInspectorGUI() { var umakeTarget = target as UMakeTarget; Undo.RecordObject(umakeTarget, "UMakeTarget"); EditorGUI.BeginChangeCheck(); EditorHelper.BeginBox("Build Settings"); ShowBuildSettings(umakeTarget); EditorHelper.EndBox(); EditorGUILayout.Space(); BuildAction action = ShowActions(); EditorGUILayout.Space(); ShowPreBuildActions(umakeTarget); ShowPostBuildActions(umakeTarget); if (EditorGUI.EndChangeCheck()) { EditorUtility.SetDirty(umakeTarget); } GUILayout.FlexibleSpace(); ExecuteAction(umakeTarget, action); }
public override void OnInspectorGUI(UMakeBuildActionEditor editor) { base.OnInspectorGUI(editor); EditorHelper.BeginBox("Shared Settings"); EditorGUILayout.BeginHorizontal(); steamSdkPath.Value = EditorGUILayout.TextField("Steam SDK Folder", steamSdkPath.Value); if (GUILayout.Button("Change", GUILayout.Width(64.0f))) { string path = EditorUtility.OpenFolderPanel("Steam SDK Folder Path", steamSdkPath.Value, ""); if (!string.IsNullOrEmpty(path)) { steamSdkPath.Value = path; } } EditorGUILayout.EndHorizontal(); steamUsername.Value = EditorGUILayout.TextField("Steam Username", steamUsername.Value); steamPassword.Value = EditorGUILayout.PasswordField("Steam Password", steamPassword.Value); EditorHelper.EndBox(); GUILayout.FlexibleSpace(); }
public static void OnPreferencesGUI() { scroll = EditorHelper.BeginBox(scroll, "Script Templates"); bool windowsLineEnding = EditorGUILayout.Toggle("Use windows line ending format", ScriptTemplateUseWindowsLineEnding.Value); if (windowsLineEnding != ScriptTemplateUseWindowsLineEnding.Value) { ScriptTemplateUseWindowsLineEnding.Value = windowsLineEnding; cSharpScriptTemplate.UpdateLineEnding(); cSharpEditorScriptTemplate.UpdateLineEnding(); } cSharpScriptTemplate.OnPreferencesGUI(); EditorGUILayout.Space(); cSharpEditorScriptTemplate.OnPreferencesGUI(); EditorHelper.EndBox(); }
public static void OnPreferencesGUI() { EditorHelper.BeginBox("Assembly Processor"); bool enabled = AssemblyProcessorManager.Enabled; EditorGUI.BeginChangeCheck(); enabled = EditorGUILayout.Toggle("Enabled", enabled); if (EditorGUI.EndChangeCheck()) { AssemblyProcessorManager.Enabled = enabled; } if (GUILayout.Button("Force Process Assemblies")) { AssemblyProcessorManager.LockAndProcessAssemblies(); EditorUtility.RequestScriptReload(); Debug.Log("Assemblies Processed"); } EditorHelper.EndBox(); }
public static BoxGroup Do(string label) { EditorHelper.BeginBox(label); return(new BoxGroup()); }
public static BoxGroup Do(ref Vector2 scroll, string label) { scroll = EditorHelper.BeginBox(scroll, label); return(new BoxGroup()); }
public BoxGroup(string label) { EditorHelper.BeginBox(label); }
public BoxGroup(ref Vector2 scroll, string label) { scroll = EditorHelper.BeginBox(scroll, label); }