Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question How do I get the chain of outputs of a AudioMixerGroup up to the Master?

Discussion in 'Audio & Video' started by MrFuzzzy, May 28, 2020.

  1. MrFuzzzy

    MrFuzzzy

    Joined:
    Feb 27, 2019
    Posts:
    13
    The title says it all, I think.

    I have a SoundSource that plays into an AudioMixerGroup. I can get the MixerGroups' mixer with
    AudioMixerGroup.audioMixer
    but I would like to walk the complete tree of all MixerGroups up to the Master.

    something like this: GroupA1 -> GroupA -> Master

    Getting groups with
    AudioMixer.FindMatchingGroups(GroupPath)
    doesn't help because I have to know what they are called for that.
     
  2. MrFuzzzy

    MrFuzzzy

    Joined:
    Feb 27, 2019
    Posts:
    13