Author Topic: Button not working with mouseclick after upgrade.  (Read 7527 times)

Dengao

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Button not working with mouseclick after upgrade.
« on: April 24, 2015, 06:05:58 AM »
Hey. i've been working with NGUI version 3.4.8 for a long time now. We recently moved our prosject to unity 5, and wanted to upgrade to the newest NGUI version(3.8.2).
The problem is that buttons dont work anymore with mouseclick. We use OnClick() function to get the function we want to run, and a "UIKeyBinding" script to get the hotkey. The hotkey is working fine, but i still cant click on the buttons with mouse. I dont think it is raycast problem, because the tooltip is working fine and when u click on the button the "UiButton" on hover and pressed is changing colors.
I also have "RayCast Hit triggers" on in physics, and colliders in the buttons. It was working before so dunno what happened.

Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Button not working with mouseclick after upgrade.
« Reply #1 on: April 24, 2015, 07:51:04 AM »
Is your tooltip delay set to 0?

Dengao

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Button not working with mouseclick after upgrade.
« Reply #2 on: April 24, 2015, 08:46:03 AM »
Yes. But i want it to be 0

Dengao

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Button not working with mouseclick after upgrade.
« Reply #3 on: April 24, 2015, 08:48:56 AM »
well it fixed the problem tho, TY :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Button not working with mouseclick after upgrade.
« Reply #4 on: April 27, 2015, 04:19:33 PM »
Just a note, the tooltip delay set to 0 thing is already fixed in the Pro repository.

Dengao

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Button not working with mouseclick after upgrade.
« Reply #5 on: May 05, 2015, 08:35:11 AM »
Ty alot :) really helps