logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Modal.Installation.Settings

    Classes

    UnityModalServiceSettingsDefinition

    Unity ScriptableObject implementation of modal service settings definition.
    Defines configuration for modal service initialization including initial modal ID and UI border margins.
    Provides Unity-specific Vector2 to System.Numerics.Vector2 conversion for cross-platform compatibility.

    UnityModalSettings

    Unity ScriptableObject for configuring modal dialog settings and parameters.
    Provides editor interface for defining modal content, appearance, and behavior.
    Integrates with Unity's CreateAssetMenu system and supports signal-based modal triggering.
    Implements both IUiShowModalParameters and IFoundationSettings interfaces for system integration.

    This is a per-modal asset, not a singleton despite the "Settings" name reading like one: Serenity.Modal.Installation.Settings.Editor.Builder.ModalCreator writes one instance per modal, one level below the Media Folder at "{MediaFolder}/{Id}". A wizard field that seeds itself by scanning the project for this type will resolve to whichever modal's own folder holds the most of them — see Serenity.Modal.Installation.Settings.Editor.Builder.ModalMediaRootResolver, which exists specifically to correct that.

    In this article
    © 2026 Serenity. All Rights Reserved