Author Topic: UITween bug after update to 3.0.8  (Read 4856 times)

Sobraj

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 11
    • View Profile
UITween bug after update to 3.0.8
« on: January 07, 2014, 02:24:43 PM »
I have a UISprite which has an initial alpha value of 0. And on that sprite I have a Alpha Tween from 0 to 1. After I updated to 3.0.8 it stopped working. If I manually set the alpha while running it works. But if i play the tween in reverse so that the alpha becomes 0 again, and then play the tween forward again it does not work anymore.

Calling MarkAsChanged, MarkParentAsChanged or Refresh (on the panel) does not work either. Is this a bug from the performance update? Or do I have to do something extra?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITween bug after update to 3.0.8
« Reply #1 on: January 08, 2014, 12:19:56 PM »
You'll need to provide more details to go on. A quick test:

1. New scene.
2. ALT+SHIFT+S to add a sprite.
3. Set alpha to 0.
4. Add TweenAlpha with "to" of 1.
5. Hit Play

...reveals nothing wrong. Sprite fades in just fine.

Sobraj

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: UITween bug after update to 3.0.8
« Reply #2 on: January 10, 2014, 11:27:12 AM »
The tween script is disabled at start and only gets enabled through code. The object is a prefab and is added to a UIGrid through code. And when clicked on the sprite it is faded in.

Did not test it yet in a fresh scene (have had no time yet). Will test it in a new scene once I got the time.