Hello Guest

Author Topic: Sprite collor doesn't change on animation  (Read 3098 times)

DarkSlash

  • Newbie
  • *
  • Posts: 19
    • View Profile
Sprite collor doesn't change on animation
« on: May 14, 2015, 02:46:39 pm »
I have a character that I want to change color through animation. The sprites are managed with 2DToolkit. I created a clip, I put the change color at 1 second from the beginning (so the sprite will fade to that color) and I set the animation to NOT loop. The animation doesn't work in the preview mode (clicking play in animation clip) nor in the game view. What I'm doing wrong?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite collor doesn't change on animation
« Reply #1 on: May 14, 2015, 05:35:30 pm »
The unity animation system doesn't animate C# properties. The color property on a sprite is a c# property and because of that it just isn't possible without an adapter class or similar. An example - http://2dtoolkit.com/forum/index.php/topic,3719.msg20376.html#msg20376