Author Topic: NGUI input only attend to specific collider  (Read 2153 times)

xito

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
NGUI input only attend to specific collider
« 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 :).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI input only attend to specific collider
« Reply #1 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.