Class ScyllaDebugWindow
Runtime debugging window for monitoring the Scylla Framework during Play mode.
Opened via Tools > Scylla > Editor > Debug Console....
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public sealed class ScyllaDebugWindow : ScyllaToolWindowBase
Remarks
The window has two mutually exclusive tabs selected by ToolbarToggle buttons:
- Status tab - Shows a live "Framework Status" section (initialization state, version, module count, uptime) and a "Registered Modules" section listing every IScyllaModule with its ScyllaModuleStatusIndicator, version, and enabled flag.
-
Events tab - Shows a rolling event log populated by
DebugEventMonitor with a filterable
MultiColumnListView(Time / Event Type / Description columns), event statistics, and filter dropdown.
In Edit mode the content area is replaced by a "Play Mode Required" placeholder. The Clear and Pause/Resume toolbar buttons are hidden in Edit mode and shown only during Play mode.
RecurringSafe(VisualElement, Action, long) fires every 250 ms to refresh whichever tab is currently visible, avoiding redundant work on the hidden tab. Tab selection and pause state are persisted via UnityEditor.SessionState so they survive domain reloads.
The skeleton UI (all label-value rows and module list rows) is built once and updated in place on each refresh tick to avoid tearing the layout on every poll interval. Module list rows are only structurally rebuilt when the module count changes.
Methods
OnCreateGUI()
Called after the standard layout (toolbar, content, status bar) is created. Subclasses override this to add their panels and controls.
Declaration
protected override void OnCreateGUI()
Overrides
OnPlayModeStateChanged(PlayModeStateChange)
Called when the Unity Editor transitions between Edit mode and Play mode. Override to react to play-mode entry/exit (e.g. refresh runtime panels, start or stop polling schedulers, swap UI content).
Declaration
protected override void OnPlayModeStateChanged(PlayModeStateChange state)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayModeStateChange | state | The new play mode state. |
Overrides
ShowWindow()
Opens the Debug Console window. If the window is already open it is focused. The window enforces a minimum size of 600 x 400 px.
Declaration
public static void ShowWindow()