Loading...
Searching...
No Matches
realvirtual.EditorUIFactory Class Reference
Static Public Member Functions | |
| static void | AttachStylesheet (VisualElement root) |
| Load and attach the shared editor stylesheet to a root element. | |
| static StyleSheet | FindStyleSheet (string name) |
| Find a USS stylesheet by asset name (without extension). | |
| static VisualElement | CreateSection (string title) |
| Create a section container with a bold header label. | |
| static VisualElement | CreateSeparator () |
| Create a 1px horizontal separator. | |
| static VisualElement | CreateActionRow () |
| Create a horizontal action-button row. | |
| static VisualElement | CreateHeaderRow (string title, Button toggleButton=null) |
| Create a header row with a title and optional toggle button. | |
| static VisualElement | CreateFieldRow () |
| Create a field + button row (e.g., ObjectField + Select button). | |
| static void | SetButtonColor (Button button, bool enabled, Color enabledColor) |
| Set button background color based on enabled state. | |
Member Function Documentation
◆ AttachStylesheet()
|
static |
Load and attach the shared editor stylesheet to a root element.
Call this at the start of CreateGUI() in any editor tool. Uses cached FindAssets lookup — no hardcoded path needed.
◆ CreateActionRow()
|
static |
Create a horizontal action-button row.
◆ CreateFieldRow()
|
static |
Create a field + button row (e.g., ObjectField + Select button).
◆ CreateHeaderRow()
|
static |
Create a header row with a title and optional toggle button.
◆ CreateSection()
|
static |
Create a section container with a bold header label.
◆ CreateSeparator()
|
static |
Create a 1px horizontal separator.
◆ FindStyleSheet()
|
static |
Find a USS stylesheet by asset name (without extension).
Caches the shared stylesheet; other lookups are cached per-call site.
◆ SetButtonColor()
|
static |
Set button background color based on enabled state.
When disabled, resets to default styling.