Class ScyllaEditorStyles
Centralized UnityEngine.GUIStyle management for the Scylla editor toolset. All styles are lazily initialized on first access and cached for the lifetime of the editor session. Supports both Unity's Light and Dark editor themes.
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public static class ScyllaEditorStyles
Remarks
Styles are organized into the following categories:
- Header styles - large (22 px), medium (14 px), and small (12 px) bold labels.
- Section styles - section label, section box, and configuration property box.
- Foldout styles - foldout header with background and indented content area.
- Box styles - info (blue), warning (yellow), error (red), and generic help boxes.
- Button styles - toolbar button, mini button, and icon-only button.
- Label styles - bold, muted, centered, and rich-text labels.
- Status styles - colored mini-labels for module states (enabled, disabled, error, initializing).
- Misc styles - horizontal separator, graph node, and selected graph node.
Colors used by styles are sourced from ScyllaEditorColors. If the Unity editor theme changes mid-session, call Reinitialize() to rebuild both the color cache and all derived styles.
The ConfigurationBox style creates a programmatic UnityEngine.Texture2D
background that is explicitly tracked in _configBoxBgTexture and destroyed on
re-initialization to prevent memory leaks from domain reloads.
Properties
ConfigurationBox
Box style for configuration property sections. Has the same padding as SectionBox but no visible border or background, so content blends into the editor default background.
Declaration
public static GUIStyle ConfigurationBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
ErrorBox
Style for error boxes (red tint).
Declaration
public static GUIStyle ErrorBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
FoldoutContent
Style for foldout content areas.
Declaration
public static GUIStyle FoldoutContent { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
FoldoutHeader
Style for foldout headers with background.
Declaration
public static GUIStyle FoldoutHeader { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
GraphNode
Style for graph nodes.
Declaration
public static GUIStyle GraphNode { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
GraphNodeSelected
Style for selected graph nodes.
Declaration
public static GUIStyle GraphNodeSelected { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
HeaderLarge
Large header style (22px, bold).
Declaration
public static GUIStyle HeaderLarge { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
HeaderMedium
Medium header style (16px, bold).
Declaration
public static GUIStyle HeaderMedium { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
HeaderSmall
Small header style (12px, bold).
Declaration
public static GUIStyle HeaderSmall { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
HelpBox
Generic help box style.
Declaration
public static GUIStyle HelpBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
IconButton
Style for icon-only buttons.
Declaration
public static GUIStyle IconButton { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
InfoBox
Style for info boxes (blue tint).
Declaration
public static GUIStyle InfoBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
LabelBold
Bold label style.
Declaration
public static GUIStyle LabelBold { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
LabelBoldCentered
Bold and centered label style.
Declaration
public static GUIStyle LabelBoldCentered { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
LabelCentered
Centered label style.
Declaration
public static GUIStyle LabelCentered { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
LabelMuted
Muted/grayed label style.
Declaration
public static GUIStyle LabelMuted { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
LabelRichText
Label style with rich text support.
Declaration
public static GUIStyle LabelRichText { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
MiniButton
Style for small/mini buttons.
Declaration
public static GUIStyle MiniButton { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
PropertyDescription
Muted label style for configuration property descriptions displayed above fields
when ShowPropertyDescriptions is enabled. Word-wrapping, fontSize 10,
left-padded to align with property labels.
Declaration
public static GUIStyle PropertyDescription { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
SectionBox
Box style for section content areas.
Declaration
public static GUIStyle SectionBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
SectionLabel
Label style for section headers.
Declaration
public static GUIStyle SectionLabel { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
Separator
Style for horizontal separator lines.
Declaration
public static GUIStyle Separator { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
StatusDisabled
Style for disabled/inactive status indicators.
Declaration
public static GUIStyle StatusDisabled { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
StatusEnabled
Style for enabled/active status indicators.
Declaration
public static GUIStyle StatusEnabled { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
StatusError
Style for error status indicators.
Declaration
public static GUIStyle StatusError { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
StatusInitializing
Style for initializing/loading status indicators.
Declaration
public static GUIStyle StatusInitializing { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
ToolbarButton
Style for toolbar buttons.
Declaration
public static GUIStyle ToolbarButton { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
WarningBox
Style for warning boxes (yellow tint).
Declaration
public static GUIStyle WarningBox { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
WizardSidebarGroup
Style for wizard sidebar group headers.
Declaration
public static GUIStyle WizardSidebarGroup { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
WizardSidebarItem
Style for wizard sidebar step items.
Declaration
public static GUIStyle WizardSidebarItem { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
WizardSidebarItemActive
Style for the currently active wizard sidebar step item.
Declaration
public static GUIStyle WizardSidebarItemActive { get; }
Property Value
| Type | Description |
|---|---|
| GUIStyle |
Methods
Reinitialize()
Forces reinitialization of all cached UnityEngine.GUIStyle instances, first delegating to Reinitialize() so that the color cache is refreshed before style colors are resampled.
Declaration
public static void Reinitialize()
Remarks
Call this method after the user switches between Unity's Light and Dark themes
mid-session. All style fields are set to null internally and rebuilt on the
next property access. The owned ConfigurationBox background texture
is destroyed during the rebuild to prevent memory leaks.