Skip to content

Instantly share code, notes, and snippets.

@MadLittleMods
Last active September 27, 2024 14:59
Show Gist options
  • Save MadLittleMods/ea3e7076f0f59a702ecb to your computer and use it in GitHub Desktop.
Save MadLittleMods/ea3e7076f0f59a702ecb to your computer and use it in GitHub Desktop.

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"
@Invertex
Copy link

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
Copy link

der-hugo commented Mar 4, 2019

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