Author Topic: OnClick() not working  (Read 2904 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
OnClick() not working
« on: February 06, 2013, 12:21:26 PM »
Sorry guys, I now I'm a pain in the ass, but I have to finished 2 games in 3 months and I'm fighing with Unity and NGUI everyday. All this things in our own engine I know how to do it and fix it, but in Unity all the things are new to me.

Well, the issue now is that I'm using the things from one game into the other to save time, but in one of the games Pause Menu, the OnClick() doesn't work, just works the OnPress().

The widgets and assets are pretty much the same in the projects.

Anyone knows which could be the issue?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: OnClick() not working
« Reply #1 on: February 06, 2013, 10:10:37 PM »
OnClick fires if the object you pressed down on is the same object as you release the touch/mouse button on.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: OnClick() not working
« Reply #2 on: February 07, 2013, 10:05:34 AM »
Well, yep, at the end the programmers said it was a conflict with our Input Manager.
So thanks anyway.