Class UnityGameGraphicsServiceFactory
Factory for creating Unity-specific game graphics services.
Implements
Inherited Members
Namespace: Serenity.GameGraphics.Infrastructure.Services
Assembly: Serenity.UnityGameGraphics.Infrastructure.dll
Syntax
public class UnityGameGraphicsServiceFactory : IGameGraphicsServiceFactory
Constructors
UnityGameGraphicsServiceFactory()
Declaration
public UnityGameGraphicsServiceFactory()
Methods
CreateService(string, IGameGraphicsSettings, IEventDispatcherService, ILogService, IGameSettingsService)
Creates a new Unity game graphics service with the specified configuration.
Declaration
public IGameGraphicsService CreateService(string serviceName, IGameGraphicsSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService, IGameSettingsService gameSettingsService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serviceName | The name to assign to the service GameObject. |
| IGameGraphicsSettings | settings | The graphics settings configuration for the service. |
| IEventDispatcherService | eventDispatcherService | The event dispatcher service for handling graphics events. |
| ILogService | logService | The log service for logging information. |
| IGameSettingsService | gameSettingsService | The game settings service for reading persisted user settings. |
Returns
| Type | Description |
|---|---|
| IGameGraphicsService | An initialized game graphics service instance. |