Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nopecio on November 08, 2012, 04:06:05 PM

Title: Clipped buttons and Colliders
Post by: nopecio on November 08, 2012, 04:06:05 PM
Hi,
i found that my buttons are still sending OnClick messages when they are clipped out in a scrollable panel (they are not visible, out of the clipping area).
is there any way to prevent this, and somehow ignore events (particularly collider related ones) when the button is clipped out?
Thanks and regards
Title: Re: Clipped buttons and Colliders
Post by: dlewis on November 08, 2012, 06:05:23 PM
Place colliders (on empty game objects) in the clipped area and make sure the colliders are in front of the clipped buttons
Title: Re: Clipped buttons and Colliders
Post by: nopecio on November 08, 2012, 06:32:27 PM
Clever, thanks i'll give it a try
Title: Re: Clipped buttons and Colliders
Post by: dlewis on November 08, 2012, 07:26:44 PM
Example 7 uses this technique, look at that if you need to.