Class ScyllaInputEditor
Custom inspector for the ScyllaInput module built with UI Toolkit. Extends Scylla.Core.Editor.ScyllaModuleEditor with Input-specific runtime sections.
Inheritance
Inherited Members
Namespace: Scylla.Input.Editor
Assembly: ScyllaInput.Editor.dll
Syntax
[CustomEditor(typeof(ScyllaInput))]
public sealed class ScyllaInputEditor : ScyllaModuleEditor
Remarks
Input-specific runtime sections shown only in Play mode:
- Connected Devices - all tracked devices with badge and status.
- Control Scheme - active scheme type, icon set, and detection settings.
- Input Context Stack - active context with priority and action maps.
- Input Buffer - buffering state, window, and current count.
- Input Hints - active icon set and initialization state.
Methods
BuildInspector(VisualElement)
Subclasses populate root with their inspector content.
The root has the shared Scylla stylesheets pre-loaded.
Declaration
protected override void BuildInspector(VisualElement root)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | root | The inspector's root element. |
Overrides
BuildRuntimeSectionContent(VisualElement)
Builds and adds the Runtime Information foldout to root. The
foldout contains an edit-mode placeholder help box ("Runtime information available
during Play mode") and a Scylla.Core.Editor.ScyllaEditorBase.BuildRuntimeContainer() group that shows the
Scylla.Core.ScyllaCore initialization status, a state-specific tip, and Enable /
Disable buttons. The runtime container is automatically shown and the placeholder
hidden when entering Play mode via EditorApplication.playModeStateChanged.
The Enable and Disable buttons' enabled state is managed by the 500 ms refresh tick.
Declaration
protected override void BuildRuntimeSectionContent(VisualElement root)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | root | The inspector root to add the runtime foldout to. |
Overrides
BuildStatusSection(VisualElement)
Builds and adds the Module Status foldout to root. Displays the
module's current Scylla.Core.Modules.ScyllaModuleState as a string, an Is Enabled flag
colored green when enabled and gray when disabled, and the initialization priority
from Scylla.Core.Modules.ScyllaModuleInfo. The state and enabled labels are refreshed by
the 500 ms poll via Scylla.Core.Editor.ScyllaModuleEditor.RefreshStatusDisplay().
Declaration
protected override void BuildStatusSection(VisualElement root)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | root | The inspector root to add the status foldout to. |