InspectorUIUtility Class

Definition

This class has handy inspector UI utilities and functions.

C++
public ref class InspectorUIUtility abstract sealed
Inheritance
InspectorUIUtility

Fields

Properties

Methods

AdjustListSettings(List<InspectorUIUtility.ListSettings>, Int32)

adjust list settings as things change

Box(Int32)

Box style with left margin

DrawComponentTypeFoldout<T>(GameObject, Boolean, String)

Draws a foldout enlisting all components (or derived types) of the given type attached to the passed gameobject. Adds a button for adding any of the component (or derived types) and a follow button to highlight existing attached components.

DrawDivider()

Create a line across the negative space

DrawEnumSerializedProperty(Rect, SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

DrawEnumSerializedProperty(SerializedProperty, GUIContent, Enum)

Draws a popup UI with PropertyField type features. Displays prefab pending updates

DrawError(String)

draw a notice with red coloring

DrawHeader(String)

Medium title format

DrawLabel(String, Int32, Color)

Draw a basic label

DrawNotice(String)

draw a notice area, normal coloring

DrawScriptableFoldout<T>(SerializedProperty, String, Boolean)

Draws the contents of a scriptable inline inside a foldout. Depending on if there's an actual scriptable linked, the values will be greyed out or editable in case the scriptable is created inside the serialized object.

DrawSectionFoldout(String, Boolean, GUIStyle)

Draws a section start (initiated by the Header attribute)

DrawSectionFoldoutWithKey(String, String, GUIStyle, Boolean)

Draws a section start with header name and save open/close state to given preference key in SessionState

DrawSuccess(String)

draw a notice with green coloring

DrawTitle(String)

Large title format

DrawWarning(String)

draw a label with a yellow coloring

FlexButton(GUIContent, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty)

A button that is as wide as the label

FlexButton(GUIContent, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty)

A button that is as wide as the label

FlexButton(GUIContent)

A button that is as wide as the label

FullWidthButton(GUIContent, Single, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty)

A button that is as wide as the available space

FullWidthButton(GUIContent, Single, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty)

A button that is as wide as the available space

GetOptions(SerializedProperty)

Get an array of strings from a serialized list of strings, pop-up field helper

GetOptionsIndex(SerializedProperty, String)

Get the index of a serialized array item based on its name, pop-up field helper

HelpBox(Int32)

Help box style with left margin

LableStyle(Int32, Color)

Create a custom label style based on color and size

RenderDocumentationButton(String, Single)

Render documentation button routing to relevant URI

RenderDocumentationSection(String)

Render a documentation header with button for given url value

RenderHelpURL(Type)

Render a documentation header with button if Object contains HelpURLAttribute

RenderIndentedButton(Func<Boolean>)

Helper function to support primary overloaded version of this functionality

RenderIndentedButton(GUIContent, GUIStyle, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

RenderIndentedButton(String, GUILayoutOption[])

Helper function to render buttons correctly indented according to EditorGUI.indentLevel since GUILayout component don't respond naturally

SmallButton(GUIContent, Int32, InspectorUIUtility+ListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with single index callback events

SmallButton(GUIContent, Int32[], InspectorUIUtility+MultiListButtonEvent, SerializedProperty)

A small button, good for a single icon like + or - with multi-index callback events

SmallButton(GUIContent)

A small button, good for a single icon like + or -

Applies to

Produkt Verzie
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0