Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

How to Use?

GUIStyle mystyle = new GUIStyle("some string from the list below");


UnityEditor.ConsoleWindow.Constants

  • "CN Box"
  • "Button"
  • "ToolbarButton"
  • "ToolbarButton"
  • "ToolbarButton"
  • "ToolbarButton"
  • "Toolbar"
  • "CN EntryInfo"
  • "CN EntryWarn"
  • "CN EntryError"
  • "CN EntryBackEven"
  • "CN EntryBackodd"
  • "CN Message"
  • "CN StatusError"
  • "CN StatusWarn"
  • "CN StatusInfo"
  • "CN CountBadge"
  • "Box"
  • "Button"
  • "MiniButton"
  • "MiniButtonLeft"
  • "MiniButtonMiddle"
  • "MiniButtonRight"
  • "LogStyle"
  • "WarningStyle"
  • "ErrorStyle"
  • "EvenBackground"
  • "OddBackground"
  • "MessageStyle"
  • "StatusError"
  • "StatusWarn"
  • "StatusLog"
  • "Toolbar"
  • "CountBadge"

UnityEditor.EditorStyles

  • "ColorPickerBox"
  • "In BigTitle"
  • "miniLabel"
  • "LargeLabel"
  • "BoldLabel"
  • "MiniBoldLabel"
  • "WordWrappedLabel"
  • "WordWrappedMiniLabel"
  • "WhiteLabel"
  • "WhiteMiniLabel"
  • "WhiteLargeLabel"
  • "WhiteBoldLabel"
  • "MiniTextField"
  • "Radio"
  • "miniButton"
  • "miniButtonLeft"
  • "miniButtonMid"
  • "miniButtonRight"
  • "toolbar"
  • "toolbarbutton"
  • "toolbarPopup"
  • "toolbarDropDown"
  • "toolbarTextField"
  • "ToolbarSeachTextField"
  • "ToolbarSeachTextFieldPopup"
  • "ToolbarSeachCancelButton"
  • "ToolbarSeachCancelButtonEmpty"
  • "SearchTextField"
  • "SearchCancelButton"
  • "SearchCancelButtonEmpty"
  • "HelpBox"
  • "AssetLabel"
  • "AssetLabel Partial"
  • "AssetLabel Icon"
  • "selectionRect"
  • "MinMaxHorizontalSliderThumb"
  • "DropDownButton"
  • "BoldLabel"
  • "Label"
  • "MiniLabel"
  • "MiniBoldLabel"
  • "ProgressBarBack"
  • "ProgressBarBar"
  • "ProgressBarText"
  • "FoldoutPreDrop"
  • "IN Title"
  • "IN TitleText"
  • "BoldToggle"
  • "Tooltip"
  • "NotificationText"
  • "NotificationBackground"
  • "MiniPopup"
  • "textField"
  • "ControlLabel"
  • "ObjectField"
  • "ObjectFieldThumb"
  • "ObjectFieldMiniThumb"
  • "Toggle"
  • "ToggleMixed"
  • "ColorField"
  • "Foldout"
  • "TextFieldDropDown"
  • "TextFieldDropDownText"

UnityEditor.ObjectListArea.Styles

  • "PR Label"
  • "ProjectBrowserGridLabel"
  • "ObjectPickerResultsGrid"
  • "ObjectPickerBackground"
  • "ObjectPickerPreviewBackground"
  • "ProjectBrowserHeaderBgMiddle"
  • "ProjectBrowserHeaderBgTop"
  • "Label"
  • "MiniLabel"
  • "Foldout"
  • "ObjectPickerToolbar"
  • "PR TextField"
  • "PR Ping"
  • "PR Ping"
  • "ProjectBrowserIconDropShadow"
  • "ProjectBrowserTextureIconDropShadow"
  • "ProjectBrowserIconAreaBg"
  • "ProjectBrowserPreviewBg"
  • "ProjectBrowserSubAssetBg"
  • "ProjectBrowserSubAssetBgOpenEnded"
  • "ProjectBrowserSubAssetBgCloseEnded"
  • "ProjectBrowserSubAssetBgMiddle"
  • "ProjectBrowserSubAssetBgDivider"
  • "ProjectBrowserSubAssetExpandBtn"
@hieunt89

This comment has been minimized.

Copy link

@hieunt89 hieunt89 commented Dec 15, 2016

I'm curious about where could you find these default gui style ?

@Invertex

This comment has been minimized.

Copy link

@Invertex Invertex commented May 12, 2018

For future reference of people finding this repo, it lists where you can find these. Open UnityEditor.dll using a C# dll explorer like ILSpy or even VS, and then locate the .ctor (constructor) for these classes listed here, such as "UnityEditor.EditorStyles".

@der-hugo

This comment has been minimized.

Copy link

@der-hugo der-hugo commented Mar 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment