2D Toolkit Forum

2D Toolkit => Support => Topic started by: ankart on July 31, 2013, 11:03:21 am

Title: Animating the Alpha in a Sprite
Post by: ankart 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.
Title: Re: Animating the Alpha in a Sprite
Post by: profanicus 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.
Title: Re: Animating the Alpha in a Sprite
Post by: unikronsoftware 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