Class UnityUiServiceFactory
Factory for creating Unity-specific UI services with dependency injection support.
Implements
Inherited Members
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. |