logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IModalControllerFactory<TAction, TContext>

    Factory interface for creating modal controllers.

    Namespace: Serenity.Modal.Application.Interfaces.Controllers.Factories
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public interface IModalControllerFactory<TAction, TContext> where TAction : IDisposable
    Type Parameters
    Name Description
    TAction
    TContext
    Remarks

    The TAction type must implement IDisposable.

    Methods

    CreateController(string, string, float, int, float, IPlayerInputService, IPlayerInputActionBindingFactory<TAction, TContext>, IModalService, object, ILogService)

    Creates a new instance of a UI controller with the specified parameters.

    Declaration
    IUiController<TAction, TContext> CreateController(string id, string guid, float changeInterval, int consecutiveChangesBeforeSpeedUp, float fastChangeInterval, IPlayerInputService playerInputService, IPlayerInputActionBindingFactory<TAction, TContext> playerInputActionBindingFactory, IModalService modalService, object playerInput, ILogService logService)
    Parameters
    Type Name Description
    string id

    The unique identifier for the controller.

    string guid

    The globally unique identifier for the controller.

    float changeInterval

    The interval between input changes.

    int consecutiveChangesBeforeSpeedUp

    The number of consecutive changes before speeding up.

    float fastChangeInterval

    The interval for fast input changes.

    IPlayerInputService playerInputService

    The player input service instance.

    IPlayerInputActionBindingFactory<TAction, TContext> playerInputActionBindingFactory

    The factory for creating player input action bindings.

    IModalService modalService

    The modal service instance.

    object playerInput

    The player input object.

    ILogService logService

    The logging service instance.

    Returns
    Type Description
    IUiController<TAction, TContext>

    A new instance of a UI controller.

    In this article
    © 2026 Serenity. All Rights Reserved