Class SerenityHubWindow
The Serenity Hub — the single "start here" front door for the package. A UI Toolkit workspace with a persistent sidebar (Home, Create, Validate, Browse, Learn, Advanced) and a swappable content panel, replacing the previous single-scroll-view IMGUI layout (spec §2, design ADR-2, migration note).
The Hub never fixes anything itself: every card and every launcher button opens a real tool via SerenityHubLauncher (UnityEditor.EditorApplication.ExecuteMenuItem(System.String)) or a real asset. Hosted alongside SerenityProjectValidationRunner and SerenityValidateEverythingWindow for the same reason they live here — this assembly already references the Global validator engines and owns the localization one, so hosting the Hub in Global would create a circular assembly reference (design ADR-1).
Namespace: Serenity.Localization.Installation.Settings.Editor
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public sealed class SerenityHubWindow : EditorWindow
Constructors
SerenityHubWindow()
Declaration
public SerenityHubWindow()
Fields
PREFS_KEY_DONT_AUTO_OPEN
Persisted per-project. True once the Hub has auto-opened, or the user opted out.
Declaration
public const string PREFS_KEY_DONT_AUTO_OPEN = "Serenity.Hub.AutoOpenShown"
Field Value
| Type | Description |
|---|---|
| string |
SidebarViewIdOrder
Sidebar view ids, in the exact display order. Learn sits last by product decision (UX feedback round 3), superseding spec §2's original ordering. Exposed as a static, pure fact so the sidebar contract is regression-tested without needing a live window instance.
Declaration
public static readonly IReadOnlyList<string> SidebarViewIdOrder
Field Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Methods
Open()
Opens the Serenity Hub.
Declaration
public static void Open()