playMaker

Author Topic: Fade in sprite not working [NVM SOLVED]  (Read 1703 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Fade in sprite not working [NVM SOLVED]
« on: September 26, 2014, 03:09:51 AM »
What am I doing wrong? fsm screenshot:http://i.imgur.com/ympdEgO.png
The sprite color alpha is set to 0 to start. It seems pretty straight  forward but it's not working.
-Thanks

« Last Edit: September 27, 2014, 04:55:32 PM by Sarcophagav »

Splankton

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
Re: Fade in sprite not working
« Reply #1 on: September 26, 2014, 11:38:22 AM »
Which shader are you using?

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Fade in sprite not working
« Reply #2 on: September 27, 2014, 02:25:59 PM »
Hi,
 It's just a sprite in the Sprite Renderer. I guess whatever default shader Unity 2d uses for their 2d sprites.
Thanks

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • Tumblr
Re: Fade in sprite not working
« Reply #3 on: September 27, 2014, 04:01:06 PM »
Ok, so it seems the problem was because, at one point, I was testing an animation state in the animator with an alpha channel. I tried the fade fsm it on a fresh sprite and it all worked up until I added the Animator Component that contains the state with an alpha animation.

So even if you aren't currently playing the specific animation on the game object, it will still not allow an fsm to control the color.  There can't be an Animator component with a color animation state somewhere in that Animation Controller.   

This is pretty obscure, but maybe this will help someone else too. I'm marking this as solved.

« Last Edit: September 27, 2014, 05:55:22 PM by Sarcophagav »