Show / Hide Table of Contents

Class ProfileEditor

Editor GUI for BuildProfile and EditorProfile.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UnityEditor.Editor
ProfileEditor
Namespace: sttz.Trimmer.Editor
Assembly: Trimmer-Editor.dll
Syntax
[CustomEditor(typeof(EditableProfile), true)]
public class ProfileEditor : Editor, IPreviewable, IToolModeOwner

Methods

| Improve this Doc View Source

AddBuildTarget(Object)

Declaration
protected void AddBuildTarget(object userData)
Parameters
Type Name Description
System.Object userData
| Improve this Doc View Source

BuildGUI()

Declaration
protected void BuildGUI()
| Improve this Doc View Source

Foldout(Boolean, String, GUIStyle)

Work around bug in EditorGUI's foldouts that don't toggle when clicking on the foldout's label.

Declaration
public static bool Foldout(bool foldout, string content, GUIStyle style = null)
Parameters
Type Name Description
System.Boolean foldout
System.String content
UnityEngine.GUIStyle style
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Foldout(String, Boolean, String, GUIStyle)

Same as Foldout(Boolean, String, GUIStyle) but stores the expanded state in the EditorProfile based on the given path.

Declaration
public static bool Foldout(string path, bool def, string content, GUIStyle style = null)
Parameters
Type Name Description
System.String path
System.Boolean def
System.String content
UnityEngine.GUIStyle style
Returns
Type Description
System.Boolean
| Improve this Doc View Source

OnDisable()

Declaration
protected void OnDisable()
| Improve this Doc View Source

OnEnable()

Declaration
protected void OnEnable()
| Improve this Doc View Source

OnInspectorGUI()

Declaration
public override void OnInspectorGUI()
Overrides
UnityEditor.Editor.OnInspectorGUI()
| Improve this Doc View Source

OptionDisplayName(String)

Prettifies camel case names by adding spaces.

Declaration
public static string OptionDisplayName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.String
| Improve this Doc View Source

OptionGUI(Option, Int32, Boolean)

Declaration
protected bool OptionGUI(Option option, int depth, bool showDefaultVariant = false)
Parameters
Type Name Description
Option option
System.Int32 depth
System.Boolean showDefaultVariant
Returns
Type Description
System.Boolean
| Improve this Doc View Source

OptionGUIRecursive(Option, Int32)

Declaration
protected void OptionGUIRecursive(Option option, int depth = 0)
Parameters
Type Name Description
Option option
System.Int32 depth
| Improve this Doc View Source

ResurseOptionsGUI(Boolean)

Declaration
protected void ResurseOptionsGUI(bool showBuild = false)
Parameters
Type Name Description
System.Boolean showBuild
| Improve this Doc View Source

SortOptionsByCategoryAndName(IEnumerable<Option>)

Sort the root options in the given profile first by category and then by name.

Declaration
public static List<Option> SortOptionsByCategoryAndName(IEnumerable<Option> options)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Option> options
Returns
Type Description
System.Collections.Generic.List<Option>
  • Improve this Doc
  • View Source
Back to top © 2017 Adrian Stutz