logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnitySoundMixerServiceFactory

    Factory for creating Unity-specific sound mixer service instances.
    Implements the abstract factory pattern to create and initialize UnitySoundMixerService components.
    Handles GameObject creation, component attachment, and service initialization with proper dependency injection.

    Inheritance
    object
    UnitySoundMixerServiceFactory
    Implements
    ISoundMixerServiceFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.SoundMixer.Infrastructure.Services
    Assembly: Serenity.UnitySoundMixer.Infrastructure.dll
    Syntax
    public class UnitySoundMixerServiceFactory : ISoundMixerServiceFactory

    Constructors

    UnitySoundMixerServiceFactory()

    Declaration
    public UnitySoundMixerServiceFactory()

    Methods

    CreateService(string, ISoundMixerSettings, IEventDispatcherService)

    Creates a new Unity sound mixer service instance with full initialization.
    Creates a GameObject, attaches the UnitySoundMixerService component, and configures it with the provided settings and event dispatcher.

    Declaration
    public ISoundMixerService CreateService(string serviceName, ISoundMixerSettings soundMixerSettings, IEventDispatcherService eventDispatcherService)
    Parameters
    Type Name Description
    string serviceName

    The name to assign to the created GameObject

    ISoundMixerSettings soundMixerSettings

    The sound mixer settings for service configuration

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for handling audio-related events

    Returns
    Type Description
    ISoundMixerService

    A fully initialized sound mixer service instance

    Implements

    ISoundMixerServiceFactory
    In this article
    © 2026 Serenity. All Rights Reserved