- Home /
 
 
               Question by 
               pencilbreaker · Jun 26, 2014 at 06:12 PM · 
                guiissuesliderhorizontal-slider  
              
 
              Horizontal Slider issue
Hi
My slider thump does not slide. Value is changing but thump not play. (Debug.Log("slider = " + sliderBar))
What is the problem? How to fix this?
 sliderBar = GUI.HorizontalSlider(new Rect (x, y, width, height), sliderBar, 0.0f, 10.0f);
 
              
               Comment
              
 
               
              Hello
this is the example in the documentation:
 using UnityEngine;
 using System.Collections;
 
 public class ExampleClass : $$anonymous$$onoBehaviour {
     public float hSliderValue = 0.0F;
     void OnGUI() {
         hSliderValue = GUI.HorizontalSlider(new Rect(25, 25, 100, 30), hSliderValue, 0.0F, 10.0F);
     }
 }
 
                  It should work, you need to show us more of your code because I don't see any issues at this point
Your answer
 
             Follow this Question
Related Questions
How to make a Horizontal Slider slide between resolutions? 3 Answers
move object with slider 1 Answer
How can I add markers to a horizontal slider? 2 Answers
Using GUI.HorizontalSlider on Vector2? 2 Answers
GUI slider and rotation not working 1 Answer