- Home /
I solved the solution myself, code unavailable.
UI Slider Value Increases Far Too Slowly With Controller.
Hi,
I'm using a slider to change the current time of day, with a value of 86400 and it works fine with mouse.
I know that the answer to the question is because I have a very big number, and the controller goes through every number with exact precision, whereas the mouse is a little more forgiving, allowing me to move the slider to an appropriate value.
So really, what I'm asking is how to increase the speed in which the numbers are added to increase the time so that the UI slider value increases quicker when a controller is being used.
Thank you.
Answer by TheGameLearner · Nov 21, 2018 at 08:47 AM
How is the value of slider Changed? By mouse movement or Scrolling the mouse wheel.
Either way, you can multiply the difference you felt with a large number to make it a step increase.
Alternatively, Store a small value in the slider and multiply it with a large number before you use the value.
Yeah, I actually thought of this just after posting the question.
When a controller is connected, the max value is set to 846 and whole numbers is disabled and then I times by 100 for the final result.
I do, however, have a difference question based on some behaviour I've caused. I was wondering if it would be possible to decrease the sensitivity. By this I mean, the number jumps around in big intervals at the slightest tap. So, it goes from 4:10A$$anonymous$$ to 12:40P$$anonymous$$ for example (it's a day/night cycle system).
Can you share the relevant controller script with me? If I can understand how you have coded it, then I might be able to provide a better help.
I've solved the solution myself now, though thanks for your input!
Follow this Question
Related Questions
Triple Slider control - UI slider value control 1 Answer
How to Make a Vertical-Scroll Number Input Field, i.e. < > Value Amount 0 Answers
Better way of making a 4.6UI slider to return even values only 1 Answer
Getting the Value of a slider with 4.6 UI 2 Answers
UI Slider value gets stucked in loop and Doesn't increase further 0 Answers