logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiInstaller

    Unity-specific UI installer that manages the complete UI system setup and configuration.
    Handles canvas creation, theme application, component factories, and view initialization for Unity UI infrastructure.

    Inheritance
    object
    UnityUiInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Ui.Installation.Installers
    Assembly: Serenity.UnityUi.Installation.dll
    Syntax
    public class UnityUiInstaller : UiInstaller, IFoundationInstaller, IInstaller

    Constructors

    UnityUiInstaller(ILogService)

    Initializes a new instance of the UnityUiInstaller with the specified log service.
    Sets up the installer with logging capabilities for tracking installation progress and issues.

    Declaration
    public UnityUiInstaller(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    The log service for tracking installation operations

    Properties

    FoundationViewElementFactory

    Declaration
    public IFoundationViewElementFactory FoundationViewElementFactory { get; }
    Property Value
    Type Description
    IFoundationViewElementFactory

    PrimaryInputPromptView

    Declaration
    public IPrimaryInputPromptView PrimaryInputPromptView { get; }
    Property Value
    Type Description
    IPrimaryInputPromptView

    UiBackgroundComponentFactory

    Declaration
    public UnityUiBackgroundComponentFactory UiBackgroundComponentFactory { get; }
    Property Value
    Type Description
    UnityUiBackgroundComponentFactory

    UiDropdownComponentFactory

    Declaration
    public UnityUiDropdownComponentFactory UiDropdownComponentFactory { get; }
    Property Value
    Type Description
    UnityUiDropdownComponentFactory

    UiInputComponentFactory

    Declaration
    public UnityUiInputComponentFactory UiInputComponentFactory { get; }
    Property Value
    Type Description
    UnityUiInputComponentFactory

    UiSelectorComponentFactory

    Declaration
    public UnityUiSelectorComponentFactory UiSelectorComponentFactory { get; }
    Property Value
    Type Description
    UnityUiSelectorComponentFactory

    UiSliderComponentFactory

    Declaration
    public UnityUiSliderComponentFactory UiSliderComponentFactory { get; }
    Property Value
    Type Description
    UnityUiSliderComponentFactory

    UiSubmitComponentFactory

    Declaration
    public UnityUiSubmitComponentFactory UiSubmitComponentFactory { get; }
    Property Value
    Type Description
    UnityUiSubmitComponentFactory

    UiToggleComponentFactory

    Declaration
    public UnityUiToggleComponentFactory UiToggleComponentFactory { get; }
    Property Value
    Type Description
    UnityUiToggleComponentFactory

    UiViewModelFactory

    Declaration
    public UnityUiViewModelFactory UiViewModelFactory { get; }
    Property Value
    Type Description
    UnityUiViewModelFactory

    Methods

    GetCanvas()

    Gets the Unity Canvas instance created during installation.
    Provides access to the root UI canvas for external components.

    Declaration
    public Canvas GetCanvas()
    Returns
    Type Description
    Canvas

    The Unity Canvas instance

    GetTheme()

    Gets the UI theme definition applied during installation.
    Provides access to the theme configuration for UI styling and assets.

    Declaration
    public IUiThemeDefinition GetTheme()
    Returns
    Type Description
    IUiThemeDefinition

    The UI theme definition instance

    Install(UiInstallerInstallInput)

    Installs the complete Unity UI system with the specified configuration.
    Orchestrates the installation of settings, factories, canvas, and UI components.

    Declaration
    public override void Install(UiInstallerInstallInput input)
    Parameters
    Type Name Description
    UiInstallerInstallInput input

    Installation input data containing services and configuration

    InstallPrimaryInputPromptView(object, IFoundationSettings, IPlayerInputService, string, IUiThemeDefinition, IViewModel)

    Declaration
    protected IViewBase InstallPrimaryInputPromptView(object canvas, IFoundationSettings settings, IPlayerInputService playerInputService, string audioServiceId, IUiThemeDefinition theme, IViewModel viewModel)
    Parameters
    Type Name Description
    object canvas
    IFoundationSettings settings
    IPlayerInputService playerInputService
    string audioServiceId
    IUiThemeDefinition theme
    IViewModel viewModel
    Returns
    Type Description
    IViewBase

    InstallService(IUiSettings, IEventDispatcherService, ILogService)

    Declaration
    protected override IUiService InstallService(IUiSettings uiSettings, IEventDispatcherService eventDispatcherService, ILogService logService)
    Parameters
    Type Name Description
    IUiSettings uiSettings
    IEventDispatcherService eventDispatcherService
    ILogService logService
    Returns
    Type Description
    IUiService

    InstallServiceFactory()

    Declaration
    protected override IUiServiceFactory InstallServiceFactory()
    Returns
    Type Description
    IUiServiceFactory

    InstallUseCases(IUiService, IUiPresenter)

    Declaration
    protected override UiUseCases InstallUseCases(IUiService service, IUiPresenter presenter)
    Parameters
    Type Name Description
    IUiService service
    IUiPresenter presenter
    Returns
    Type Description
    UiUseCases

    Implements

    IFoundationInstaller
    IInstaller
    In this article
    © 2026 Serenity. All Rights Reserved