Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: xito on December 10, 2013, 10:34:30 AM

Title: NGUI input only attend to specific collider
Post by: xito on December 10, 2013, 10:34:30 AM
Hi!

We are making a tutorial and we need to filter the inputs. We need to allow that only one button gets input events.
We are thinking about some kind of whitelist or blacklist to implement this but we don't know how or where we can implement this with NGUI.


Thanks :).
Title: Re: NGUI input only attend to specific collider
Post by: ArenMook on December 10, 2013, 09:50:50 PM
You could disable the colliders yourself. Easiest thing to do would be to do GetComponentsInChildren<BoxCollider>() on the UIRoot and disable all of them, then enable the ones you actually want active.