Author Topic: De-activating UIButton hover/press animations?  (Read 3828 times)

skullthug

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 37
    • View Profile
De-activating UIButton hover/press animations?
« 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 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.

skullthug

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 37
    • View Profile
Re: De-activating UIButton hover/press animations?
« Reply #1 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.