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

Issue of Audio mixer & Asset bundle

Discussion in 'Audio & Video' started by HelloGalaxy, Feb 2, 2016.

  1. HelloGalaxy

    HelloGalaxy

    Joined:
    May 21, 2015
    Posts:
    4
    Hello,

    I meet a issue about audio mixer and asset bundle.

    I make 2 tests :

    Test 1:

    1. Create a scene, which will be set in asset bundle. It used a audio mixer , and alos to put it in asset bundle.
    2. Run project, and Click a button then go to download the scene from asset bundle from a scene which is included only in app.
    3. Try to use volume controle script to turn on/off music group. but nothing happen. I see the log, it displays that it cannot find out the defined output parameter.

    Here is log snapshot:



    Test 2:
    1. Create a scene, which will be set in asset bundle. But for the audi mixer, I do not configure it to in asset bundle(no setting for its floder)
    2. Run project, and Click a button then go to download the scene from asset bundle from a scene which is included only in app.
    3. Result like test 1.

    Is that the loaded aseet bunlde scene will make a copy of this audio mixer and get a conflit for other same one, then the out paramert of volume group doesn't work ? But the log show, the audio source output mixer is same to the audio volume control refference(that audio mixer). Maybe the missing GI output can give some key here....


    Related post theme:

    http://forum.unity3d.com/threads/audio-mixer-and-asset-bundle.338077/


    Could some one give me a help to handle this? thank you.
     
    Last edited: Feb 3, 2016
  2. HelloGalaxy

    HelloGalaxy

    Joined:
    May 21, 2015
    Posts:
    4
    All right, if I run in android device, it's ok. But if I run it with unity editor(android mode) to download asset bundle, it get these issue....


    So does it a bug of unity for asset bundle?
     
  3. samonte.rey

    samonte.rey

    Joined:
    Feb 3, 2016
    Posts:
    4
    Quick question, are the audio mixers included in those asset bundles? I've encountered a similar problem where the audio mixer groups weren't being assigned when I instantiated prefabs from bundles. The issue was the audio mixers I assigned to the prefabs in the editor was not assigned to a bundle. From what it seems, I don't think the link to the audio mixers are retained during the bundle process.

    The solution we came up with was to re-assign the proper audio mixer groups to the prefabs with the audio components when the prefab is instantiated.