Texture does not appear when applied on the vertical slider.

Hi all, this is my first time asking a question here. Sorry for my bad English.

I encounter this problem when I was coding for my game menu. When I set an image on the vertical slider and the thumb, which is to control the volume setting, the image / texture is not displayed. Instead, the default thumb and slider disappeared. But once i remove that line code, the default setting appears again.

hey ,Here is the solution
public float hSliderValue = 0.0F;
hSliderValue = GUI.VerticalSlider(new Rect(692,253,21,729), hSliderValue, 255, 10,sliderBgStyle,sliderThumbStyle);

Assign images of sliderbg and slider thumb…
it will show you slider images but not thumb slider

…so You have to do
1.Go inspector of sliderBgStyle and sliderThumbStyle uncheck Stretch height and stretch width …

  1. set fixed width and height as per you thumb size (eg. fixed width =30,fixed height=30)

i think that is enough…