Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

AudioMixerGroup Programmatically

Discussion in 'Audio & Video' started by Ciano77, Mar 20, 2015.

  1. Ciano77

    Ciano77

    Joined:
    Mar 6, 2014
    Posts:
    5
    Hi,
    I'm very excited about the new audio engine. I love that you can do everything in a visual way, but should be cool to control/create everything by code too.

    I want to create at runtime new AudioMixerGroup, then assign a new AudioSource( created by code) to the AudioMixerGroup .

    I already create an AudioSource by code and assigned the output to the AudioMixerGroup.

    In the API I read the there is an instantiate method, so I thought that I can clone AudioMixerGroup at runtime then assign the audiosource.

    There are someone that could help me ?
    Thanks

    p.s. I use C#
     
    MrFuzzzy likes this.