Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: skullthug on March 01, 2014, 04:51:53 PM

Title: De-activating UIButton hover/press animations?
Post by: skullthug on March 01, 2014, 04:51:53 PM
Hi there. I'm running into an issue with LateUpdate() getting expensive on iPhone4. I found this thread (http://www.tasharen.com/forum/index.php?topic=1216.0) saying to animate panels instead of widgets when possible to improve on this. However the hover/press animation is built into UIButton, and I'm not sure if there's a way to disable the animations without disabling the button so I can setup something to animate the panel instead.

I'm using NGUI 3.0.5, with current plans to update shortly after shipping.
Title: Re: De-activating UIButton hover/press animations?
Post by: skullthug on March 01, 2014, 04:54:30 PM
Nevermind, it looks like I can disable the UIButton script and still utilize OnPress() to execute necessary functions.