EditorStyles Manual     Reference     Scripting  
Scripting > Editor Classes > EditorStyles
EditorStyles

Common GUIStyles used for EditorGUI controls. These are set up by calling EditorGUIUtility.LookLikeInspector and EditorGUIUtility.LookLikeControls.

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.

Use these styles to make GUI that looks native to Unity

Class Variables
label

Style used for the labelled on all EditorGUI overloads that take a prefix label

miniLabel

Style for label with small font.

largeLabel

Style for label with large font.

boldLabel

Style for bold label.

miniBoldLabel

Style for mini bold label.

wordWrappedLabel

Style for word wrapped label.

wordWrappedMiniLabel

Style for word wrapped mini label.

whiteLabel

Style for white label.

whiteMiniLabel

Style for white mini label.

whiteLargeLabel

Style for white large label.

whiteBoldLabel

Style for white bold label.

radioButton

Style used for a radio button

miniButton

Style used for a standalone small button.

miniButtonLeft

Style used for the leftmost button in a horizontal button group.

miniButtonMid

Style used for the middle buttons in a horizontal group.

miniButtonRight

Style used for the rightmost button in a horizontal group.

textField

Style used for EditorGUI.TextField

miniTextField

Smaller text field

numberField

Style used for field editors for numbers

popup

Style used for EditorGUI.Popup, EditorGUI.EnumPopup,

objectField

Style used for headings for object fields.

objectFieldThumb

Style used for headings for the Select button in object fields.

colorField

Style used for headings for Color fields.

layerMaskField

Style used for headings for Layer masks.

toggle

Style used for headings for EditorGUI.Toggle.

foldout

Style used for headings for EditorGUI.Foldout.

foldoutPreDrop

Style used for headings for EditorGUI.Foldout.

toggleGroup

Style used for headings for EditorGUILayout.BeginToggleGroup.

standardFont

Standard font.

boldFont

Bold font.

miniFont

Mini font.

miniBoldFont

Mini Bold font.

toolbar

Toolbar background from top of windows.

toolbarButton

Style for Button and Toggles in toolbars.

toolbarPopup

Toolbar Popup

toolbarDropDown

Toolbar Dropdown

toolbarTextField

Toolbar text field