Hello Guest

Author Topic: Animating the Alpha in a Sprite  (Read 4168 times)

ankart

  • Newbie
  • *
  • Posts: 3
    • View Profile
Animating the Alpha in a Sprite
« on: July 31, 2013, 11:03:21 am »
Hi

I just started using 2D Toolkit.

Trying to animate the alpha channel , when I just drag the slider for the alpha it works , when I key it in the animation editor , it doesn't :\

Anyone seen this happen?

It works if I access the alpha through a script.

profanicus

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 167
    • View Profile
Re: Animating the Alpha in a Sprite
« Reply #1 on: July 31, 2013, 11:23:59 am »
I tried it and you're right - seems like a bug. The animation clip moves the sliders but the sprite itself doesn't update. But it does when you drag them manually or access the property through script.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Animating the Alpha in a Sprite
« Reply #2 on: July 31, 2013, 12:17:31 pm »
Its one of those quirks in the unity animation editor. It'll not animate .net properties. You can work around this limitation by using something like this:
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1816.msg8915.html#msg8915