logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnitySoundMixerEffectLoopDefinitionFactory

    Editor-only service that creates and persists a UnitySoundMixerEffectLoopDefinition asset for a freshly created effect loop. Contains NO UI: it takes a CreateSoundMixerEffectLoopDefinitionInput and returns a CreateSoundMixerEffectLoopDefinitionOutput, mirroring the separation used by AudioMixerEffectLoopCreator for the mixer side.

    Validates the request, blocks duplicate loop ids (scanning existing definition assets), writes the asset to a collision-free path, and never throws to the caller.

    Inheritance
    object
    UnitySoundMixerEffectLoopDefinitionFactory
    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 UnitySoundMixerEffectLoopDefinitionFactory

    Fields

    LoopIdRegex

    Allowed characters for a loop id/key (a routing key: letters, digits, '_' and '-', no spaces).

    Declaration
    public static readonly Regex LoopIdRegex
    Field Value
    Type Description
    Regex

    Methods

    Create(CreateSoundMixerEffectLoopDefinitionInput)

    Creates the definition asset described by input.

    Declaration
    public static CreateSoundMixerEffectLoopDefinitionOutput Create(CreateSoundMixerEffectLoopDefinitionInput input)
    Parameters
    Type Name Description
    CreateSoundMixerEffectLoopDefinitionInput input
    Returns
    Type Description
    CreateSoundMixerEffectLoopDefinitionOutput

    Validate(CreateSoundMixerEffectLoopDefinitionInput)

    Validates a request. Returns the first failing rule's message, or null when valid. Reusable by the UI to gate the Create button.

    Declaration
    public static string Validate(CreateSoundMixerEffectLoopDefinitionInput input)
    Parameters
    Type Name Description
    CreateSoundMixerEffectLoopDefinitionInput input
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved