Class UnityUiThemeDefinitionEditor
Unity Editor inspector for UnityUiThemeDefinition ScriptableObject configuration.
Provides comprehensive UI for configuring UI component templates, audio clips, and theme settings for the Unity UI system.
Features organized sections for component prefabs and audio feedback configuration with automatic saving functionality.
Namespace: Serenity.Ui.Installation.Settings.Editor
Assembly: Serenity.UnityUi.Installation.Editor.dll
Syntax
public class UnityUiThemeDefinitionEditor : FoundationEditor<UnityUiThemeDefinition>
Constructors
UnityUiThemeDefinitionEditor()
Declaration
public UnityUiThemeDefinitionEditor()
Methods
DrawSerializedFields()
Renders the custom Inspector GUI for UnityUiThemeDefinition configuration.
Displays organized sections for component templates, audio settings, and theme properties with automatic saving on changes.
Provides a comprehensive interface for configuring all aspects of Unity UI theme definitions.
Declaration
protected override void DrawSerializedFields()
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()
RenderAdaptMenuWidth(UnityUiThemeDefinition)
Renders the adapt menu width boolean field.
Configures whether to adapt menu width to text content (title and options).
Declaration
public void RenderAdaptMenuWidth(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderAdaptMenuWidthPadding(UnityUiThemeDefinition)
Renders the adapt menu width padding float field.
Configures the padding to apply when adapting menu width to text content.
Declaration
public void RenderAdaptMenuWidthPadding(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderCancelSoundAudioClip(UnityUiThemeDefinition)
Renders the cancel sound audio clip selection field.
Configures the audio clip played when user performs cancel actions or backs out of operations.
Declaration
public void RenderCancelSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderCascadeViewPrefab(UnityUiThemeDefinition)
Renders the cascade-view panel template prefab selection field.
Configures the themed panel the cascade menu instantiates per column.
Declaration
public void RenderCascadeViewPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderChangeOptionValueAudioClip(UnityUiThemeDefinition)
Renders the change option value sound audio clip selection field.
Configures the audio clip played when users change values in dropdown, slider, or toggle components.
Declaration
public void RenderChangeOptionValueAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderDropdownPrefab(UnityUiThemeDefinition)
Renders the dropdown component template prefab selection field.
Configures the prefab used for dropdown menus and option selection UI components.
Declaration
public void RenderDropdownPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderErrorSoundAudioClip(UnityUiThemeDefinition)
Renders the error sound audio clip selection field.
Configures the audio clip played when validation errors occur or invalid actions are attempted.
Declaration
public void RenderErrorSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderHideSoundAudioClip(UnityUiThemeDefinition)
Renders the hide sound audio clip selection field.
Configures the audio clip played when UI elements are hidden or dismissed from view.
Declaration
public void RenderHideSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderInputPrefab(UnityUiThemeDefinition)
Renders the input component template prefab selection field.
Configures the prefab used for text input fields and input validation UI components.
Declaration
public void RenderInputPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderLeaderboardPrefab(UnityUiThemeDefinition)
Renders the leaderboard panel template prefab selection field.
Configures the themed panel the leaderboard view instantiates to display ranked entries.
Declaration
public void RenderLeaderboardPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderLoadingProgressPrefab(UnityUiThemeDefinition)
Renders the loading-progress template prefab selection field.
Configures the prefab used by the gameplay loading overlay to render the progress bar,
a dedicated variant of the slideable prefab so it does not inherit hover/selection behavior.
Declaration
public void RenderLoadingProgressPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderMenuBackgroundPrefab(UnityUiThemeDefinition)
Declaration
public void RenderMenuBackgroundPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme |
RenderModalPrefab(UnityUiThemeDefinition)
Renders the modal dialog template prefab selection field.
Configures the prefab used for modal dialogs and popup window UI components.
Declaration
public void RenderModalPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderNameHandler(UnityUiThemeDefinition)
Renders the theme name configuration field.
Allows editing of the human-readable theme identifier used for theme selection and validation.
Declaration
public void RenderNameHandler(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderPrimaryInputPromptTemplatePrefab(UnityUiThemeDefinition)
Renders the primary input prompt template prefab selection field.
Configures the prefab used for primary device input prompts in menus and dialogs.
Declaration
public void RenderPrimaryInputPromptTemplatePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderSelectOptionSoundAudioClip(UnityUiThemeDefinition)
Renders the select option sound audio clip selection field.
Configures the audio clip played when users select or highlight menu options and UI elements.
Declaration
public void RenderSelectOptionSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderSelectablePrefab(UnityUiThemeDefinition)
Renders the selectable component template prefab selection field.
Configures the prefab used for selectable menu items and navigation elements.
Declaration
public void RenderSelectablePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderShowMenuBackground(UnityUiThemeDefinition)
Declaration
public void RenderShowMenuBackground(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme |
RenderShowSoundAudioClip(UnityUiThemeDefinition)
Renders the show sound audio clip selection field.
Configures the audio clip played when UI elements are shown or displayed to the user.
Declaration
public void RenderShowSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderSlideablePrefab(UnityUiThemeDefinition)
Renders the slideable component template prefab selection field.
Configures the prefab used for slider controls and range input UI components.
Declaration
public void RenderSlideablePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderSubmitSoundAudioClip(UnityUiThemeDefinition)
Renders the submit sound audio clip selection field.
Configures the audio clip played when user performs submit actions or confirms operations.
Declaration
public void RenderSubmitSoundAudioClip(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderSumbittablePrefab(UnityUiThemeDefinition)
Renders the submittable component template prefab selection field.
Configures the prefab used for submit buttons and confirmation UI components.
Declaration
public void RenderSumbittablePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderTitlePrefab(UnityUiThemeDefinition)
Declaration
public void RenderTitlePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme |
RenderToastPrefab(UnityUiThemeDefinition)
Renders the toast template prefab selection field.
Configures the default prefab used by UnityToastComponent for transient
notifications when no per-component prefab is assigned.
Declaration
public void RenderToastPrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |
RenderToggleablePrefab(UnityUiThemeDefinition)
Renders the toggleable component template prefab selection field.
Configures the prefab used for toggle switches and boolean option UI components.
Declaration
public void RenderToggleablePrefab(UnityUiThemeDefinition menuTheme)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityUiThemeDefinition | menuTheme | The theme definition instance to configure |