logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnitySystemConfigurationServiceFactory

    Unity-specific factory for creating system configuration service instances.
    Creates and configures UnitySystemConfigurationService MonoBehaviour components with proper dependency injection.
    Manages GameObject creation, service initialization, and optional game settings integration.
    Provides clean instantiation pattern for Unity lifecycle-dependent services.

    Inheritance
    object
    UnitySystemConfigurationServiceFactory
    Implements
    ISystemConfigurationServiceFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.SystemConfiguration.Infrastructure.Services
    Assembly: Serenity.UnitySystemConfiguration.Infrastructure.dll
    Syntax
    public class UnitySystemConfigurationServiceFactory : ISystemConfigurationServiceFactory

    Constructors

    UnitySystemConfigurationServiceFactory()

    Declaration
    public UnitySystemConfigurationServiceFactory()

    Methods

    CreateService(ILogService, string, ISystemConfigurationSettings, IGameSettingsService)

    Creates a new Unity system configuration service with complete initialization.
    Instantiates a GameObject, attaches the service component, and configures all dependencies.
    Optionally integrates with game settings service for automatic synchronization functionality.

    Declaration
    public ISystemConfigurationService CreateService(ILogService logService, string serviceName, ISystemConfigurationSettings settings, IGameSettingsService gameSettingsService = null)
    Parameters
    Type Name Description
    ILogService logService

    Logging service for diagnostic and debug output

    string serviceName

    Name for the GameObject hosting the service component

    ISystemConfigurationSettings settings

    Configuration settings controlling service behavior and data collection

    IGameSettingsService gameSettingsService

    Optional game settings service for automatic synchronization

    Returns
    Type Description
    ISystemConfigurationService

    Fully initialized system configuration service instance

    Implements

    ISystemConfigurationServiceFactory
    In this article
    © 2026 Serenity. All Rights Reserved