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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Clicks registering off point

Discussion in '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. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    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.