These work pretty much like the normal GUI functions - and also have matching implementations in EditorGUILayout.
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
showMixedValue |
|
actionKey |
Is the platform-dependent "action" modifier key held down? (Read Only) |
indentLevel |
|
BeginDisabledGroup |
|
EndDisabledGroup |
|
BeginChangeCheck |
|
EndChangeCheck |
|
DropShadowLabel |
Draws a label with a drop shadow. |
LabelField |
Make a label field. (Useful for showing read-only info.) |
Toggle |
|
TextField |
Make a text field. |
TextArea |
Make a text area. |
SelectableLabel |
Make a selectable label field. (Useful for showing read-only info that can be copy-pasted.) |
PasswordField |
Make a text field where the user can enter a password. |
FloatField |
|
IntField |
|
Slider |
|
IntSlider |
|
MinMaxSlider |
|
Popup |
Make a generic popup selection field. |
EnumPopup |
|
IntPopup |
@param position Rectangle on the screen to use for the field. |
TagField |
Make a tag selection field. |
LayerField |
Make a layer selection field. |
MaskField |
Make a field for masks. |
EnumMaskField |
Make a field for enum based masks. |
ObjectField |
|
Vector2Field |
Make an X & Y field for entering a Vector2. |
Vector3Field |
|
Vector4Field |
|
RectField |
|
BoundsField |
|
ColorField |
|
CurveField |
|
InspectorTitlebar |
Make an inspector-window-like titlebar. |
Foldout |
Make a label with a foldout arrow to the left of it. |
ProgressBar |
Make a progress bar. |
HelpBox |
Make a help box with a message to the user. |
PrefixLabel |
Make a label in front of some control. |
BeginProperty |
|
EndProperty |
|
DrawTextureAlpha |
Draws the alpha channel of a texture within a rectangle. |
DrawPreviewTexture |
Draws the texture within a rectangle. |
GetPropertyHeight |
Get the height needed for a PropertyField control. |
PropertyField |
Make a field for SerializedProperty. |