|
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
(comments are locked)
|
|
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 feel so dumb , the script was applied at another object I forgot about , I thought the only fact that it was printing the good value would be enough . Thank you so much !
Aug 26 '11 at 11:21 AM
Anykey
This happens very often: scripts forgotten or attached to wrong objects by mistake are hard to find, and may bother us to death
Aug 26 '11 at 11:37 AM
aldonaletto
(comments are locked)
|

Could your audio source be using ignoreListenerVolume?
No it's not using ignoreListenerVolume , i've tried adding a script to the camera which makes the ignoreListenerVolume false and true , but both doesn't make it work :/
Is your sound 2d or 3d in the import settings?
my sound was 3D in the import settings , but I changed it to 2D and the volume is still the same when I move the slider :/