|
Post by Adam on May 12, 2014 11:11:00 GMT
Hi
I'm hoping you can help me with this - we have Resource type some sounds set up in MasterAudio which are part of a bus. The sounds play without any issues when you first run the scene. If the scene is changed to another scene, I can still play the sounds. If the scene then changes again back to the original scene, the sound group transforms still exist in the scene under the Master Audio game object which we persist between scenes but playing them brings up a warning:
MasterAudio could not find sound: [the sound]. If your Scene just changed, this could happen when an OnDisable or OnInvisible event sound happened to a per-scene sound, which is expected.
I can't see how I am able to play them after the first scene change, but not when I change back to the original scene. It seems they no longer exist in the audioSourcesBySoundType dictionary (but still exist in the scene hierarchy) but I can't find anywhere they are being removed. Any help with this would be great.
Thanks
|
|
|
Post by DarkTonic Dev on May 12, 2014 16:18:41 GMT
Have you set up the problematic sounds using a Dynamic Sound Group Creator? Or were they set up in the normal Master Audio prefab? It sounds like the former, in which case this is expected behavior. If it's not, let me know. If you can send me a small project that reproduces the problem, I should be able to fix it. So far I can't reproduce the problem. Are you using a Bootstrapper Scene?
|
|