- Home /
Question by
NathanLeung · Jan 21, 2016 at 03:41 PM ·
scenemusicvolume
adjust the slider to control the volume
I set a music game-object on main scene. I want to set a Slider on other scene. how can I adjust the slider to control the volume ?
Comment
Answer by WingBro · Jan 22, 2016 at 11:48 AM
Try using:
var volume : float = 0.5f;
as a variable and have the slider change the value. and the have this line run when user clicks apply:
AudioListener.volume = volume;
Your answer
![](https://koobas.hobune.stream/wayback/20220612061128im_/https://answers.unity.com/themes/thub/images/avi.jpg)