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

InspectorHelper Class

A collection of useful functions for drawing

Static Member Functions

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
Draws the given header text with the given tooltip text
Does the default drawing for the given property on the given object
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.
Draws a horizontal line for visual separation.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon