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