Sprite tint (not color)

Im looking for a way to tint a sprite 2D with a % of a solid color.

This

GetComponent().color = Color.white; // Color.green; ETC

doesnt work because it affects only the bright pixels, leaving the dark pixels intact.

Any ideas are appreciated, thanks

Yohami

try other sprite over the first one, solid color with alpha 0-100%.

1 Like

Thanks, I’ll try. Quite lame to have to duplicate the amount of sprites on the screen just for a fog effect

you can try with shader, but i can not help here :smile:

something like: create material, add sprite to it (maybe albedo, pick your sprite), adjust it with color, and at last add shader to your sprite in material.

I have used shader only once, so ask someone, who can that :sweat_smile:

Hi, maybe 2DxFX is just what you need

Thank you, that’s awesome