Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Clicks registering off point

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by GreenBoxInteractive, Jun 25, 2015.

  1. GreenBoxInteractive

    GreenBoxInteractive

    Joined:
    Mar 23, 2015
    Posts:
    135
    I have buttons, in a panel, moved by a scroll rect and a scrollbar, but when I try to click them, the buttons click off, look at the image, you see where I click and where the button is pressed.



    the squiggle is my click pos - then you see the button clicked with its tint (the one under the sqiggle)

    any help?
     
  2. Gambit-MSplitz

    Gambit-MSplitz

    Joined:
    May 16, 2015
    Posts:
    1,234
    Go to Edit -> Project settings -> Player, and somewhere close to the top of your inspector you will see a "cursor hotspot." That decides how far away from your actual cursor the clicks go through in Unity. If you find your clicks are registering too low, increase the Cursor Hotspot Y value.
     
  3. GreenBoxInteractive

    GreenBoxInteractive

    Joined:
    Mar 23, 2015
    Posts:
    135
    Didn't work, only the buttons in the center of the scroll seem to work accurately.
     
  4. DWilliams

    DWilliams

    Joined:
    Jan 12, 2015
    Posts:
    63
    Is there any way that some buttons might be on top of the buttons that are above them in the scene? If you mess around with the button order in the hierarchy does it change the problem?
     
  5. GreenBoxInteractive

    GreenBoxInteractive

    Joined:
    Mar 23, 2015
    Posts:
    135
    I'll check that out and get back to you.