Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gav (HeyBud) on September 26, 2014, 06:09:51 AM

Title: Fade in sprite not working [NVM SOLVED]
Post by: Gav (HeyBud) on September 26, 2014, 06:09:51 AM
What am I doing wrong? fsm screenshot:http://i.imgur.com/ympdEgO.png (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

Title: Re: Fade in sprite not working
Post by: Splankton on September 26, 2014, 02:38:22 PM
Which shader are you using?
Title: Re: Fade in sprite not working
Post by: Gav (HeyBud) on September 27, 2014, 05: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
Title: Re: Fade in sprite not working
Post by: Gav (HeyBud) on September 27, 2014, 07: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.