Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Joe @ ByDesign Games on July 10, 2013, 12:19:34 PM
-
Using UIForwardEvents to forward several different OnInput instances to a single manager class, what is the best way to filter for each of them in the receiving OnInput method?
Also, is there a reason that OnInputChanged message doesn't go through the eventReceiver and/or is not forwarded with UIForwardEvents?
Thanks!
j
-
UIInput.current
-
UIInput.current
We tried that, but it wasn't working for some reason.
We opted to filter for UICamera.selectedObject and that seems to be working.
Though of course, we can't use switch on type GameObject (which both .selectedObject & .current are), so we're now using a series of if statements :P
Also, is there a reason that OnInputChanged message doesn't go through the eventReceiver and/or is not forwarded with UIForwardEvents?
Any word on the discrepancy here?
-
Legacy functionality support pretty much. Did it one way before event receivers were added, and couldn't change it without breaking backwards compatibility.