API reference
API reference
Select your platform
No SDKs available
No versions available

InspectorHelper Class

A collection of useful functions for drawing

Overview

Static Public Member Functions

static void
DrawSystemProperties
( SerializedObject serializedObject,
string [] propertyNames,
string header )
Draws all the given properties of the given serializedObject with the included header
static void
DrawHeader
( string header,
string tooltip )
Draws the given header text with the given tooltip text
static void
DrawProperty
( SerializedObject serializedObject,
string propertyName )
Does the default drawing for the given property on the given object
static void
DrawDropDown
( SerializedObject serializedObject,
Rect position,
string labelName,
string propertyName,
string [] options,
string defaultValue )
Draws a dropdown for the given object
static void
Draws a horizontal line for visual separation.

Details

Static Member Functions

static void Oculus.Voice.Utility.InspectorHelper.DrawSystemProperties
( SerializedObject serializedObject,
string [] propertyNames,
string header )
Draws all the given properties of the given serializedObject with the included header
Parameters
serializedObject
the object on which exist the given properties
propertyNames
raw text names of the properties to draw
header
the header text to use, when appropriate
static void Oculus.Voice.Utility.InspectorHelper.DrawHeader
( string header,
string tooltip )
Draws the given header text with the given tooltip text
static void Oculus.Voice.Utility.InspectorHelper.DrawProperty
( SerializedObject serializedObject,
string propertyName )
Does the default drawing for the given property on the given object
static void Oculus.Voice.Utility.InspectorHelper.DrawDropDown
( SerializedObject serializedObject,
Rect position,
string labelName,
string propertyName,
string [] options,
string defaultValue )
Draws a dropdown for the given object
Parameters
serializedObject
the object containing the relevant data
position
The position rect from the calling OnGUI
labelName
the label text to show
propertyName
the raw text name of the property to set
options
the dropdown options to be presented
defaultValue
What value to save to the property when nothing is selected.
static void Oculus.Voice.Utility.InspectorHelper.DrawHorizontalLine ( )
Draws a horizontal line for visual separation.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon