Problem with Horizontal Slider

Using C#

Problem:

27679-capture1.jpg

code:

Any quick ways to make the sliders independent of the the label size

You can use

 GUI.skin.horizontalSlider.fixedWidth = someValue;

or (not tested)

GUILayout.BeginHorizontal();
GUILayout.Label("Music:" + Mathf.RoundToInt(MusicVolume));
GUILayout.FlexibleSpace();
MusicVolume = GUILayout.HorizontalSlider(MusicVolume, 0, 100, GUILayout.Width(someValue));
GUILayout.EndHorizontal();