logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuPresenterFactory

    Factory for creating Unity-specific menu presenters with view model dependencies.

    Inheritance
    object
    UnityMenuPresenterFactory
    Implements
    IMenuPresenterFactory
    IUiPresenterFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.InterfaceAdapters.Presenters.Factories
    Assembly: Serenity.UnityMenu.InterfaceAdapters.dll
    Syntax
    public class UnityMenuPresenterFactory : IMenuPresenterFactory, IUiPresenterFactory

    Constructors

    UnityMenuPresenterFactory(IPlayerInputService)

    Initializes the factory with the player input service to inject into created presenters.

    Declaration
    public UnityMenuPresenterFactory(IPlayerInputService playerInputService)
    Parameters
    Type Name Description
    IPlayerInputService playerInputService

    The player input service used by presenters to switch the action map.

    Methods

    CreatePresenter(Dictionary<string, IViewModel>)

    Creates a new Unity menu presenter with the specified view models.

    Declaration
    public IMenuPresenter CreatePresenter(Dictionary<string, IViewModel> viewModels)
    Parameters
    Type Name Description
    Dictionary<string, IViewModel> viewModels

    Dictionary of view models keyed by their identifiers.

    Returns
    Type Description
    IMenuPresenter

    A new Unity menu presenter instance.

    Implements

    IMenuPresenterFactory
    IUiPresenterFactory
    In this article
    © 2026 Serenity. All Rights Reserved