Class ScyllaConfigurationEditorBase
Abstract base class for Scylla configuration asset inspectors built with UI Toolkit.
Inheritance
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public abstract class ScyllaConfigurationEditorBase : ScyllaEditorBase
Remarks
Provides a standard layout: header, configuration properties section (highlighted foldout), optional custom sections, config-file switches section, validation section, metadata section, and actions section.
Subclasses override BuildConfigurationContent(VisualElement) to inject their
serialized property fields into the configuration section. Override
BuildCustomSections(VisualElement) to add extra sections after the configuration
section. Override GetAdditionalValidation() to provide extra
validation results merged with the configuration's own Validate() output.
Validation is polled periodically via RecurringSafe(VisualElement, Action, long) so the validation section always reflects the current field values without requiring an explicit refresh button click.
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 virtual void BuildConfigurationContent(VisualElement container)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | container | The highlighted box container to add property fields to. |
BuildCustomSections(VisualElement)
Override to add custom sections after the standard configuration section. Called between the configuration section and the config-file section.
Declaration
protected virtual void BuildCustomSections(VisualElement root)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | root | The inspector root to add sections to. |
BuildInspector(VisualElement)
Builds the full inspector: header, config section, custom sections, config-file section, validation section, metadata section, and actions section.
Declaration
protected override sealed void BuildInspector(VisualElement root)
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | root |
Overrides
GetAdditionalValidation()
Override to supply additional editor-only validation results.
These are merged with the configuration's own Validate() output.
Declaration
protected virtual ConfigurationValidationResult[] GetAdditionalValidation()
Returns
| Type | Description |
|---|---|
| ConfigurationValidationResult[] | Additional validation results, or |