Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jeldrez on April 18, 2013, 09:14:14 AM

Title: OnClick/Press UIButtonScale issue
Post by: jeldrez on April 18, 2013, 09:14:14 AM
I add UIButtonScale on all the buttons in the game, but you can't see them work because everytime you press the buttons their made the actions so quick you can't see them work.


So, if I press the button it changes to another screen and I can't see how it changes the button scale.


I should add a "yield Waitforseconds" before the action on the OnClick? or it's a better way to do this?


Thanks
Title: Re: OnClick/Press UIButtonScale issue
Post by: ArenMook on April 18, 2013, 05:35:10 PM
Press and hold? :)
Title: Re: OnClick/Press UIButtonScale issue
Post by: jeldrez on April 19, 2013, 08:14:37 AM
That it's a function?
I'm not sure if is that, for example games like Mega Run you can click a button and it's not going to change the screen immediately, first you can see the button behavior.
Title: Re: OnClick/Press UIButtonScale issue
Post by: ArenMook on April 19, 2013, 12:26:21 PM
No, I meant press on the button -- it becomes bigger. Release -- it gets smaller. If you want to ensure that the entire tween/animation finishes playing then don't react to OnClick. Write your own logic.