|
hi guys. i have a pause menu script that i want to script to control all in game volume. i want it to be controlled through a horizontal GUI slider, but i have been having problems with that. here's the script: do you have any suggestions in c#? thanks!
(comments are locked)
|
|
I modified your script a bit. If you press volume, the button will be replaced by a slider. If you press resume, the volume will be the value of the slider. I don't know what the if(waited) does, so I removed it from the update. It just stood there and did nothing. If you want your slider to be higher or wider, you can add some GUILayoutOptions. Check out the links. I hope this helps :) http://unity3d.com/support/documentation/ScriptReference/GUILayoutOption.html http://unity3d.com/support/documentation/ScriptReference/GUILayout.HorizontalSlider.html works like a charm! thanks :D
Jun 22 '12 at 02:14 PM
BakuJake13
(comments are locked)
|
