Version: 5.5 (switch to 5.6b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorStyles

class in UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Common GUIStyles used for EditorGUI controls.

Static Variables

boldFontBold font.
boldLabelStyle for bold label.
centeredGreyMiniLabelStyle for label with small font which is centered and grey.
colorFieldStyle used for headings for Color fields.
foldoutStyle used for headings for EditorGUI.Foldout.
foldoutPreDropStyle used for headings for EditorGUI.Foldout.
helpBoxStyle used for background box for EditorGUI.HelpBox.
inspectorDefaultMarginsWrap content in a vertical group with this style to get the default margins used in the Inspector.
inspectorFullWidthMarginsWrap content in a vertical group with this style to get full width margins in the Inspector.
labelStyle used for the labelled on all EditorGUI overloads that take a prefix label.
largeLabelStyle for label with large font.
layerMaskFieldStyle used for headings for Layer masks.
miniBoldFontMini Bold font.
miniBoldLabelStyle for mini bold label.
miniButtonStyle used for a standalone small button.
miniButtonLeftStyle used for the leftmost button in a horizontal button group.
miniButtonMidStyle used for the middle buttons in a horizontal group.
miniButtonRightStyle used for the rightmost button in a horizontal group.
miniFontMini font.
miniLabelStyle for label with small font.
miniTextFieldSmaller text field.
numberFieldStyle used for field editors for numbers.
objectFieldStyle used for headings for object fields.
objectFieldMiniThumbStyle used for object fields that have a thumbnail (e.g Textures).
objectFieldThumbStyle used for headings for the Select button in object fields.
popupStyle used for EditorGUI.Popup, EditorGUI.EnumPopup,.
radioButtonStyle used for a radio button.
standardFontStandard font.
textAreaStyle used for EditorGUI.TextArea.
textFieldStyle used for EditorGUI.TextField.
toggleStyle used for headings for EditorGUI.Toggle.
toggleGroupStyle used for headings for EditorGUILayout.BeginToggleGroup.
toolbarToolbar background from top of windows.
toolbarButtonStyle for Button and Toggles in toolbars.
toolbarDropDownToolbar Dropdown.
toolbarPopupToolbar Popup.
toolbarTextFieldToolbar text field.
whiteBoldLabelStyle for white bold label.
whiteLabelStyle for white label.
whiteLargeLabelStyle for white large label.
whiteMiniLabelStyle for white mini label.
wordWrappedLabelStyle for word wrapped label.
wordWrappedMiniLabelStyle for word wrapped mini label.