Class ScyllaTextModeConfigurationEditor
Custom Unity inspector for ScyllaTextModeConfiguration assets built with UI Toolkit.
Inheritance
Inherited Members
Namespace: Scylla.TextMode.Editor
Assembly: ScyllaTextMode.Editor.dll
Syntax
[CustomEditor(typeof(ScyllaTextModeConfiguration))]
public sealed class ScyllaTextModeConfigurationEditor : ScyllaConfigurationEditorBase
Remarks
Organizes all configuration fields into four named sub-sections rendered inside the standard configuration foldout provided by Scylla.Core.Editor.ScyllaConfigurationEditorBase: Grid, SDF, Terminal, and Debug.
Grid settings control the default character cell dimensions (font size, pixels per unit) and the default viewport size in character cells. SDF settings govern the signed distance field rendering parameters used by the TextMode shader (alpha threshold, edge smoothing, bold threshold, and italic shear). Terminal settings configure scrollback buffer depth, tab-stop interval, default line-wrap behavior, and cursor blink rate. Debug settings enable per-frame render-statistics logging and grid-outline overlays.
The three settings structs (_grid, _sdf, _terminal) on the
configuration are expanded by reading child properties individually via
FindPropertyRelative(string) so each field renders flat
inside its sub-section. The two Debug fields are top-level on the configuration
and are added directly via AddDescribedField(VisualElement, SerializedProperty, string).
Methods
BuildConfigurationContent(VisualElement)
Populates the configuration properties section. Subclasses add their
UnityEditor.UIElements.PropertyField elements to the supplied container.
The base implementation iterates all serialized properties (excluding script,
metadata, and config-file fields) and renders each one with its tooltip as an
inline muted description above the field, mirroring the IMGUI baseline.
Declaration
protected override void BuildConfigurationContent(VisualElement container)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | container | The highlighted box container to add property fields to. |
Overrides
Remarks
Renders the sub-sections: Grid (font size, pixels per unit, and viewport dimensions in cells), SDF (threshold, smoothing, bold weight, italic shear, and the default line height), Terminal (scrollback lines, tab stop interval, auto-wrap, and cursor blink rate), Effects (the kill switch, speed and default timings, the concurrency limit, per-character events, and reduced motion), Theme, CRT (the default preset, quality tier, readability clamp and phosphor time step), and Debug (render-stats logging and grid-outline overlay).