Author Topic: Buttons doesn't work  (Read 2000 times)

Harsul

  • Guest
Buttons doesn't work
« on: August 18, 2012, 09:11:49 AM »
Ive created a new project and imported NGUI. It works fine in my other projects, but when i create a button in the new project and try it out in-game
nothing happens when i hover it or clicks on it. Any idea why this happens?

EDIT: Found the problem it's when i tag it. I don't get why it doesn't work when you tag it?.
« Last Edit: August 18, 2012, 09:53:36 AM by Harsul »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Buttons doesn't work
« Reply #1 on: August 18, 2012, 01:03:46 PM »
Go to physics properties and check "Raycast Hit Triggers".

Harsul

  • Guest
Re: Buttons doesn't work
« Reply #2 on: August 18, 2012, 01:51:58 PM »
Go to physics properties and check "Raycast Hit Triggers".

It is checked, still not working.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Buttons doesn't work
« Reply #3 on: August 18, 2012, 05:48:53 PM »
Do you actually have a UICamera script on your camera? Is there a collider on the button? Is the UICamera's event mask set to cover the layer that the button's collider is on?