Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity UI Mousewheel HORIZONTAL scroll

Discussion in 'UGUI & TextMesh Pro' started by Adherbal, Apr 21, 2019.

  1. Adherbal

    Adherbal

    Joined:
    Dec 4, 2012
    Posts:
    12
    By default, the mouse scroll wheel works when I have a vertical scroll bar (up/down). However, in a ScrollRect with (only) a horizontol scroll bar (left/right), the mouse wheel does nothing.

    Is there a way to fix this through the UI component controls or do I need to create an event script manually?
     
  2. Redden44

    Redden44

    Joined:
    Nov 15, 2014
    Posts:
    159
    Hi, did you find out how to fix it?

    Edit: you have to un-flag the vertical bar on the Scroll View and remove the game object (don't know if the latter its' really needed).
    The scroll movement seems inverted to me, to make it right you have to set the Scroll Sensitivity to a negative number.
     
    Last edited: May 30, 2019