Author Topic: Problem: UIButtonOffset script stops position tween  (Read 2192 times)

MGB

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Problem: UIButtonOffset script stops position tween
« on: September 22, 2012, 08:53:33 AM »
Hi all,

Having a problem (possibly a bug?) with NGUI buttons.  I have a normal button widget with its standard UIButtonOffset script attached.  I also attached an NGUI Tween Position script to move it onto the screen.  Trouble is if the button happens to move past the mouse cursor on its way onto the screen, it stops dead when the UIButtonOffset script is active.
Presume it's overriding the position tween...

(NGUI v2.2.1)

Cheers,
M

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problem: UIButtonOffset script stops position tween
« Reply #1 on: September 22, 2012, 11:47:08 AM »
You might want to tween the button's parent to move it onto the screen instead of the button itself. UIButtonOffset does indeed replace the TweenPosition.