Author Topic: UIButton and UIButtonScale behave differently  (Read 3062 times)

UndeadMatt

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIButton and UIButtonScale behave differently
« on: July 15, 2014, 01:51:09 PM »
When you hold and drag off a button, the UIButton color tweens as soon as the cursor is off the button.  The UIButtonScale does not tween until the mouse button is released.

        • create UIButton
        • make sure Pressed color is different than Normal color
        • add UI Button Scale
        • assign the button
        • add a noticeable scale
        • hit play
        • click and hold on the button
        • with the mouse held, drag off the button.  Notice how the color returns to its Normal state, but the scale remains pressed.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton and UIButtonScale behave differently
« Reply #1 on: July 15, 2014, 10:56:51 PM »
Yup, that's because the button scale script doesn't handle OnDragOver / OnDragOut events, while the button color script does.