Author Topic: Angrybots Demo is NGUI-proof?  (Read 3097 times)

Screenhog

  • Guest
Angrybots Demo is NGUI-proof?
« on: July 19, 2012, 06:56:05 PM »
I tried adding a GUI to Angrybots as a test environment for something. However, it doesn't seem to work. For instance, adding a button will make the button show up fine, but when a mouse-over happens, or the button is clicked, the button shows no response. In fact, I tested "UICamera.hoveredObject", and even when I'm over a button, it shows up as "null".

Anyone have an idea why this is happening? Is something within Angrybots disabling mouse functions on purpose?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Angrybots Demo is NGUI-proof?
« Reply #1 on: July 19, 2012, 08:49:59 PM »
Physics properties, raycast hit triggers must be on.

Screenhog

  • Guest
Re: Angrybots Demo is NGUI-proof?
« Reply #2 on: July 20, 2012, 11:12:50 AM »
Once again, you prove your tech support awesomeness about NGUI and Unity. Worked perfectly. Thanks!