Code:
` static var volumeSliderS = 1.0; function OnGUI() { volumeSliderS = GUI.HorizontalSlider (Rect(480, 130, 100, 30), volumeSliderS, 0.0, 1.0); GUI.Label(Rect(480,105,200,30),"Music = "+volumeSliderS); } `
What I was wondering is how to change how meany decimals are in a GUI slider?
When I play the game it is so long that it goes into my GUI.label
and it is frustrating and don’t know how to fix it… My game is done its just I have been trying to find how to do this.