logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AudioChannelCreator

    Creates a Serenity audio channel — a UnityAudioPlayerSettings asset routed to a mixer group — from validated input, with a single-asset rollback on failure. Kept separate from the window so the creation/validation can be unit tested in a temp folder.

    Inheritance
    object
    AudioChannelCreator
    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.RelationshipManager.Editor
    Assembly: Serenity.UnitySoundMixer.Infrastructure.Editor.dll
    Syntax
    public static class AudioChannelCreator

    Methods

    Create(string, string, AudioPlayerType, uint, AudioMixerGroup)

    Creates a channel settings asset named after id in folderPath, routed to group. A name clash is resolved with a unique suffix so nothing is overwritten.

    Declaration
    public static AudioChannelCreator.Result Create(string folderPath, string id, AudioPlayerType type, uint channels, AudioMixerGroup group)
    Parameters
    Type Name Description
    string folderPath
    string id
    AudioPlayerType type
    uint channels
    AudioMixerGroup group
    Returns
    Type Description
    AudioChannelCreator.Result

    Validate(string, string)

    Validates the channel parameters (id format, folder). Returns null when valid.

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