Search Unity

How to move slider on hover

Discussion in 'UI Toolkit' started by immrATaylor, May 13, 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 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.
     
  2. patrickf

    patrickf

    Unity Technologies

    Joined:
    Oct 24, 2016
    Posts:
    57