- Home /
How to "touch" a slider via script?
I am working on a mobile app. I have a slider that becomes that, when you touch the screen, becomes active and positions itself to your finger (you always touch the knob). However, I cannot move the slider when I move my finger on the screen. The reason it is (I think) is because it is not recognised as the selected ui component. So my question is how do I move the slider with the same touch that also activated it?
So you want when you touch the screen make it so the slider on already on your fingers. but also able to slide it?
What you can do is remember the position where you touch the screen. And subtract the position where you drag your finger. And the difference you add to the slider value
Thanks for your reply. I would like to write logic as a last resort. I was wondering if there is some out-of-the-box aproach like a function that allows me to make the UI think the user is touching the slider
Your answer
Follow this Question
Related Questions
Object appears even though it is inactive 1 Answer
Why won't my object activate? 0 Answers
How can i detect changes on a GUI slider? 1 Answer
How to make a Horizontal Slider slide between resolutions? 3 Answers
Horizontal Slider issue 0 Answers