logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    SoundMixerEffectLoopRegistrar
    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.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
    In this article
    © 2026 Serenity. All Rights Reserved