How to move slider on hover

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 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.

This looks like a question for uGUI, the in-game UI toolkit. This forum is for UIElements, an editor-only UI toolkit. Please ask your question in the uGUI forum: Unity Engine - Unity Discussions