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.
Implements
Inherited Members
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 |