Fading SpriteRenderer in/out

Hi all,

I’m trying to have my sprites fade in/out on level loading. I put all the fading into a class called Fader2D (code - https://pastebin.com/sq3S0LYg). Based on what I’ve read (and how I’ve tested it in the editor), this appears like it should work: (in-editor example: https://streamable.com/nhjz9). However, upon loading the scene, there is no fade: https://streamable.com/o961q

If I try implementing the fade with the material (code - https://pastebin.com/zya1NU2Q) this happens: https://streamable.com/g15zg

I know I’m doing something wrong, but I’m not sure where. Do I need to make my own shader?

Thanks in advance!

You are using 0 and 255 as your alpha value. Color uses values from 0.0 to 1.0. I’m pretty sure you’re seeing the alpha fade from 0% to 25500% :smile:

Oh, whoops! That was exactly it! Thank you!