Search Unity

Unity UI How to move slider on hover

Discussion in 'UGUI & TextMesh Pro' started by immrATaylor, May 14, 2019.

  1. immrATaylor

    immrATaylor

    Joined:
    Mar 28, 2017
    Posts:
    26
    Hi! I want to make my slider move when I hover over the knob and move my mouse. I don't want to have to click and drag the knob. Is there a way to do this? I tried using onenter on my knob to call setselectedgameobject to set the selected to my slider and then on exit set it to an empty gameobject but then my slider doesn't work at all. Is there a way to do this? Thanks. Any and all help is appreciated.