logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AudioMixerYamlReader

    Editor-only reader for AudioMixer (.mixer) assets via their YAML representation. Keeps all knowledge of the AudioMixer's serialized shape (AudioMixerController / AudioMixerGroupController, m_Children, m_Effects, m_ExposedParameters, m_Volume, ...) inside the SoundMixer module instead of the generic UnityYamlUtils. Reads only; never mutates.

    A Unity YAML asset is a stream of object documents (--- !u!<tag> &<fileID>, then <TypeName>: { fields }); references between objects are mappings {fileID: X}. Unity exposes no public API to read this structure, so it is parsed directly.

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

    Methods

    GetDirectChildGroupNames(YamlStream, string)

    Returns the names of the direct child groups of parentGroupName.

    Declaration
    public static List<string> GetDirectChildGroupNames(YamlStream yaml, string parentGroupName)
    Parameters
    Type Name Description
    YamlStream yaml
    string parentGroupName
    Returns
    Type Description
    List<string>

    GetExposedParameters(YamlStream)

    Returns the mixer's exposed parameters as (guid, name) pairs.

    Declaration
    public static List<KeyValuePair<string, string>> GetExposedParameters(YamlStream yaml)
    Parameters
    Type Name Description
    YamlStream yaml
    Returns
    Type Description
    List<KeyValuePair<string, string>>

    GetGroupAttenuationIndex(YamlStream, string)

    Index of the Attenuation effect in a group's effect chain, or -1 if not found.

    Declaration
    public static int GetGroupAttenuationIndex(YamlStream yaml, string groupName)
    Parameters
    Type Name Description
    YamlStream yaml
    string groupName
    Returns
    Type Description
    int

    GetGroupVolumeExposedName(YamlStream, string)

    Returns the exposed-parameter NAME bound to a group's volume (e.g. "MUSIC_Volume" for the Music group), or null when the group's volume is not exposed.

    Declaration
    public static string GetGroupVolumeExposedName(YamlStream yaml, string groupName)
    Parameters
    Type Name Description
    YamlStream yaml
    string groupName
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved