Skip to content
Version 2.11.0
↓ Get the launcher

WindowRegistration record

A registered interactive window: its spec + the root element to render. TitleLeading (when set) replaces the title-bar text (e.g. a logo + wordmark row); TitleTrailing is built right-aligned before the ✕ (e.g. mode/rotate toggles). Both null ⇒ the chrome draws the plain Title text. OnClose (when set) is invoked by the ✕ instead of just hiding the GameObject — wire it to the window’s SetVisible(false) so IsShown stays in sync (otherwise a rail/hotkey toggle needs two presses to reopen after a ✕ close).

public record WindowRegistration
name description
WindowRegistration(…) A registered interactive window: its spec + the root element to render. TitleLeading (when set) replaces the title-bar text (e.g. a logo + wordmark row); TitleTrailing is built right-aligned before the ✕ (e.g. mode/rotate toggles). Both null ⇒ the chrome draws the plain Title text. OnClose (when set) is invoked by the ✕ instead of just hiding the GameObject — wire it to the window’s SetVisible(false) so IsShown stays in sync (otherwise a rail/hotkey toggle needs two presses to reopen after a ✕ close).
OnClose { get; set; }
Root { get; set; }
Spec { get; set; }
TitleLeading { get; set; }
TitleTrailing { get; set; }