logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiShowModalEntityMapper

    Static entity mapper for converting between UI show modal parameter types.
    Transforms UiShowModalParameters into UnityUiModalParameters with additional Unity-specific configuration.
    Handles font size mapping, audio integration, theme sounds, and foundation view element factory assignment for modal presentation.

    Inheritance
    object
    UiShowModalEntityMapper
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Modal.InterfaceAdapters.EntityMappers
    Assembly: Serenity.UnityModal.InterfaceAdapter.dll
    Syntax
    public static class UiShowModalEntityMapper

    Methods

    ToUiModalParameters(UiShowModalParameters, float, IFoundationViewElementFactory, string, IUiThemeSounds)

    Converts UiShowModalParameters to UnityUiModalParameters with Unity-specific configuration.
    Maps modal properties including ID, title, text, alignment, and integrates font sizing, audio services, and theme sounds.
    Creates Unity-compatible modal parameters with proper component initialization and foundation integration.

    Declaration
    public static UiModalParameters ToUiModalParameters(UiShowModalParameters input, float textFontSize, IFoundationViewElementFactory foundationViewElementFactory, string audioServiceId, IUiThemeSounds uiThemeSounds)
    Parameters
    Type Name Description
    UiShowModalParameters input

    The source UiShowModalParameters to convert.

    float textFontSize

    Font size for the modal body text.

    IFoundationViewElementFactory foundationViewElementFactory

    Factory for creating view elements.

    string audioServiceId

    ID of the audio service to use for modal sounds.

    IUiThemeSounds uiThemeSounds

    Theme sounds configuration for modal audio feedback.

    Returns
    Type Description
    UiModalParameters

    Configured UnityUiModalParameters instance ready for Unity modal system.

    In this article
    © 2026 Serenity. All Rights Reserved