Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How can I make a scrollbar move using the mousewheel?

Discussion in 'UGUI & TextMesh Pro' started by sildeflask, Aug 22, 2023.

  1. sildeflask


    Aug 16, 2023
    I am using a scroll rect, with a scroll bar attached

    when I use the mouse wheel while hovering the scroll rect, it scrolls correctly, the scroll bar also moves correctly

    however my scroll bar is outside of the scroll rect area

    when i mouse over the scroll bar, the mouse wheel is not moving the scroll bar. I can click it, and move it, and it works.

    But I also wanted the mouse wheel to work while hovering over the scroll bar.

    How can I achieve this?