logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuInstaller

    Unity-specific implementation of MenuInstaller that handles menu system installation and configuration.
    Manages the creation of menu services, views, controllers, and UI components with Unity Input System integration.

    Inheritance
    object
    UnityMenuInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Menu.Installation.Installers
    Assembly: Serenity.UnityMenu.Installation.dll
    Syntax
    public class UnityMenuInstaller : MenuInstaller<InputAction, InputAction.CallbackContext>, IFoundationInstaller, IInstaller

    Constructors

    UnityMenuInstaller(UnityMenuInstallerInput)

    Initializes a new instance of UnityMenuInstaller with required dependencies.
    Validates all input parameters and sets up component factories for menu UI elements.

    Declaration
    public UnityMenuInstaller(UnityMenuInstallerInput input)
    Parameters
    Type Name Description
    UnityMenuInstallerInput input

    The input DTO containing all required services and factories.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when input or any required dependency is null.

    Properties

    InitMenuId

    Declaration
    public string InitMenuId { get; }
    Property Value
    Type Description
    string

    Gets the identifier of the initial menu.

    Methods

    Install(MenuInstallerInstallInput<InputAction, CallbackContext>)

    Installs the Unity menu system with the provided configuration and dependencies.
    Sets up menu services, views, controllers, and UI components with Unity Input System integration.

    Declaration
    public override void Install(MenuInstallerInstallInput<InputAction, InputAction.CallbackContext> input)
    Parameters
    Type Name Description
    MenuInstallerInstallInput<InputAction, CallbackContext> input

    The installation input containing canvas, foundation factories, and configuration data.

    Exceptions
    Type Condition
    Exception

    Thrown when required menu settings cannot be found in resources.

    Implements

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