Author Topic: Can't animate alpha  (Read 1637 times)

konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Can't animate alpha
« on: July 18, 2014, 04:22:08 AM »
Hello,

I've been using NGUI for quire some time now. Somehow I did something and ruined an alpha animation that I had and now I don't know what to do to bring it back. I have a UISprite which I want to constantly fade in/out. I've added the script Tween Alpha and I've set From:1, To:0, Play Styte: Ping Pong, Duration 0.8. I can see the animation in the inspector but in the editor i can't see any change.

What could I possibly have done wrong?
Current NGUI version : 3.6.3

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can't animate alpha
« Reply #1 on: July 18, 2014, 06:56:38 AM »
Check your hierarchy. Maybe you have more than one widget on the same object, or you may have a panel on the same object as your widget. Both are invalid. You should also update your NGUI. You'd get warnings about this in the up-to-date version.

konsnos

  • Newbie
  • *
  • Thank You
  • -Given: 8
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: Can't animate alpha
« Reply #2 on: July 18, 2014, 09:23:26 AM »
Found it. Shader was wrong. I must have changed it by mistake. Sorry for the silly question :(

Thanks for the help nevertheless :) I appreciate it!