Hi everyone ! I've made a custom 3D Slider with a box you can slide here is a part of the code
so when the box in on the left side of the slider , it prints 0 and when it's on the other side it prints 1 , but the sound doesn't change (there is just a music attached to the main camera).
Actually , when it's on the left side , the music sounds more laggy , but actually as loud as on the right side .
Thanks for reading
asked Aug 25, 2011 at 09:06 PM
I've tested this script and it worked fine. My scene is different, so I had to adapt the numbers - in consequence, the volumeSonore value ranged from -0.5 to +7, but this value is internally clamped to 0..1, so it worked as expected. I suspect there's something else altering the volume. Could you have some other lost script changing the volume elsewhere? Try to create a new scene and place only the essential objects to see if it works.
answered Aug 26, 2011 at 01:04 AM