1
NGUI 3 Support / Re: Which UIButton did the Click come from?
« on: March 12, 2014, 11:07:20 PM »
This works right out of the gate:
Which allowed me to clear out the UIButtonMessage components, and then figure out that to get the UIButton.current to work, I just needed to wire up that components OnClick event -- I was using something else (don't ask, I'm really new here).
Refactoring solves everything!
So thanks ArenMook, for the deprecation warning!
- GameObject go = UICamera.hoveredObject;
Which allowed me to clear out the UIButtonMessage components, and then figure out that to get the UIButton.current to work, I just needed to wire up that components OnClick event -- I was using something else (don't ask, I'm really new here).
Refactoring solves everything!
So thanks ArenMook, for the deprecation warning!
