Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ScrollRect and ScrollBar

Discussion in 'UGUI & TextMesh Pro' started by Modeus, Jun 11, 2016.

  1. Modeus

    Modeus

    Joined:
    Dec 12, 2012
    Posts:
    11
    I'm having the weirdest issue. Screenshot attached.

    My scrollbar and scrolling content work great, until the scroll handle gets to the bottom of the scroll bar (circled in red). Then it ignores mouse clicks on it, and I can't click and drag the handle up.

    Anyone have any ideas? I'm going mad.
     

    Attached Files:

  2. Modeus

    Modeus

    Joined:
    Dec 12, 2012
    Posts:
    11
    More testing: It's refusing to let me click the scroll handle, but only on the lower half of the handle itself. Clicking on the upper half is fine...
     
  3. Modeus

    Modeus

    Joined:
    Dec 12, 2012
    Posts:
    11
    More testing: It's not the handle, it's actually happening when the scroll handle gets close to the bottom of the scroll bar, and then I can't click any portion of the scroll handle (that has gone too low) and drag it. Can't drag down further either.
     
  4. Modeus

    Modeus

    Joined:
    Dec 12, 2012
    Posts:
    11
    Solved. Invisible panel was blocking the raycast, UI Debug info showed the culprit. You can see UI debug info by clicking on the event system object in the scene at runtime.
     
    IzzySoft likes this.
  5. IzzySoft

    IzzySoft

    Joined:
    Feb 11, 2013
    Posts:
    376
    I always liked seeing what the Mouse was Over, raycast hits. for example: