controlling slider from anywhere on the mobile screen

trying to come up with a script that would enable me controlling the slider I created from clicking anywhere on the screen by the amount of movement on the y axis. please help

Note the position you first touch.

Note the position each frame.

The difference in the Y sounds like what you want for your input.

Now scale it appropriately and then adjust the .value field of your slider.

1 Like