Class SoundMixerEffectLoopRegistrar
Editor-only helper that registers an effect-loop definition into the project's
UnitySoundMixerSettings so the runtime service can resolve it by id (the service builds
its lookup strictly from settings.EffectLoops). Idempotent: it adds the definition only when
missing. The target settings asset is matched by its AudioMixer reference, falling back to the single
settings asset in the project when no exact match is possible. Never throws to the caller.
Inherited Members
Namespace: Serenity.SoundMixer.Infrastructure.AudioMixerEffectLoop.Editor
Assembly: Serenity.UnitySoundMixer.Infrastructure.Editor.dll
Syntax
public static class SoundMixerEffectLoopRegistrar
Methods
EnsureRegistered(UnitySoundMixerEffectLoopDefinition)
Ensures definition is present in the matching settings' EffectLoops list,
adding and saving it when missing. Fails clearly when no suitable settings asset can be found or
when a different definition already occupies the same id.
Declaration
public static SoundMixerEffectLoopRegistrar.RegistrationReport EnsureRegistered(UnitySoundMixerEffectLoopDefinition definition)
Parameters
| Type | Name | Description |
|---|---|---|
| UnitySoundMixerEffectLoopDefinition | definition |
Returns
| Type | Description |
|---|---|
| SoundMixerEffectLoopRegistrar.RegistrationReport |