Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: satrio on September 24, 2012, 02:46:03 AM

Title: NGUI Clickthrough
Post by: satrio 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
Title: Re: NGUI Clickthrough
Post by: ArenMook 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.
Title: Re: NGUI Clickthrough
Post by: satrio 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.
Title: Re: NGUI Clickthrough
Post by: ArenMook on September 24, 2012, 03:18:01 PM
Playmaker? You'd have to ask on Playmaker forums.
Title: Re: NGUI Clickthrough
Post by: satrio 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."