Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Alessaint on May 26, 2014, 04:30:54 AM
-
Hi,
I'm trying to use onclick but I guess I'm doing something wrong. I have a panel with buttons. There are two Button Activate components on one of the buttons - one hides its current parent panel and the other is used to show another panel so after the button is clicked a new panel is opened and the current one closes. However I can't get OnClick to work - the problem seems to be that OnClick is evaluated before the second Button Activate (which activates the second panel along with onclick target button) so the target button is not active at that moment and therefore isn't selected...
-
So why not just right click the UIButtonActivate and move it to be above the UIKeyNavigation component so that it's executed first?
-
Ok, will do that. I just wanted to make sure that the way I'm handling is right. Thanks.