Author Topic: NGUI Clickthrough  (Read 4232 times)

satrio

  • Guest
NGUI Clickthrough
« on: September 24, 2012, 02:46:03 AM »
Hi!
I have looted this forum, but cannot find what I am looking for.
This is probably really simple, but annoying:

I have a NGUI titlescreen. Whenever I click the "Start" button, the click transfers down to my
game and starts activating clickable objects "beneath".
I use playmaker and want the GUI clicks to block collisions/raycast on underlying objects.
How do I do this?

/satrio

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Clickthrough
« Reply #1 on: September 24, 2012, 08:23:59 AM »
You need to switch your game to use the NGUI event system rather than relying on Input yourself. Either that, or check UICamera.hoveredObject != null before proceeding with your own event handling.

satrio

  • Guest
Re: NGUI Clickthrough
« Reply #2 on: September 24, 2012, 09:33:47 AM »
Sounds great, but how do I do this with playmaker?
I think I am missing something basic in my approach.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Clickthrough
« Reply #3 on: September 24, 2012, 03:18:01 PM »
Playmaker? You'd have to ask on Playmaker forums.

satrio

  • Guest
Re: NGUI Clickthrough
« Reply #4 on: September 25, 2012, 06:49:40 AM »
Ok I will ask there. Probably get the answer "NGUI? you have to ask at their forums."