logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUiServiceFactory

    Factory for creating Unity-specific UI services with dependency injection support.

    Inheritance
    object
    UnityUiServiceFactory
    Implements
    IUiServiceFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Infrastructure.Services
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityUiServiceFactory : IUiServiceFactory

    Constructors

    UnityUiServiceFactory()

    Declaration
    public UnityUiServiceFactory()

    Methods

    CreateService(string, IUiSettings, object, IEventDispatcherService, ILogService, IPrimaryInputPromptView)

    Creates a new Unity UI service with the specified dependencies and configuration.

    Declaration
    public IUiService CreateService(string serviceName, IUiSettings uiSettings, object canvas, IEventDispatcherService eventDispatcherService, ILogService logService, IPrimaryInputPromptView primaryInputPromptView)
    Parameters
    Type Name Description
    string serviceName

    The name to assign to the service GameObject.

    IUiSettings uiSettings

    The UI settings configuration for the service.

    object canvas

    The Unity Canvas object to use for UI rendering.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for UI events.

    ILogService logService

    The logging service for debug and error messages.

    IPrimaryInputPromptView primaryInputPromptView

    The primary input prompt view for user interactions.

    Returns
    Type Description
    IUiService

    A configured Unity UI service instance.

    Implements

    IUiServiceFactory
    In this article
    © 2026 Serenity. All Rights Reserved