|
Post by janisjoplin on Feb 14, 2017 19:16:39 GMT
Hi All,
We have a sound that has Weight(Instances) : 8
The debug shows it can find i=0 but it cannot find i = 1 to 7
private static void SetBusVolume(GroupBus bus, float newVolume) {
try {
aVar = aGroup._group.groupVariations;
aVar.SetGroupVolume = grpVol;
}
catch( ArgumentOutOfRangeException ) {
Debug.Log( String.Format( "aGroup:{0} aInfo:{1} aSource:{2} i:{3}", aGroup, aInfo, aSource, i ) );
|
|
|
Post by DarkTonic Dev on Feb 14, 2017 19:49:42 GMT
Are you trying to write a SetBusVolume function? We already have one. Correct that there's only 1 Variation, that creates 8 clones at runtime.
|
|
|
Post by janisjoplin on Feb 14, 2017 20:20:52 GMT
this is code fragments from your source. We are using your SetBusVolume. We added the try/catch to get debug information.
|
|
|
Post by DarkTonic Dev on Feb 15, 2017 0:26:35 GMT
Are you sure you're on the latest version? I tried this code with a Sound Group with 7 Variations and it worked fine. No errors.
MasterAudio.SetBusVolumeByName("Noises", .3f);
If you're not on the latest, there is no support. Please upgrade.
|
|
|
Post by janisjoplin on Feb 15, 2017 21:41:14 GMT
Thanks for the support. We are stuck with an older version. Will work on upgrading.
Thanks again!
|
|
|
Post by DarkTonic Dev on Feb 15, 2017 22:49:13 GMT
Ok, it should be resolved in the new. I think this was an older bug.
|
|