Easy (material?) way of changing a sprite's color


Say, you’ve got a sprite of a car’s body. It’s white, however you’d like to make it greenish. Give it a green ‘overlay’, you get it. A greenish tint. Without bringing another sprite to Unity, and possibly its animations.

Is it possible to turn it greenish solely by using things that are built into Unity? Materials, Shaders, sprite manipulation, whatever.


Well you could always do this with code. The sprite is managed by the SpriteRenderer component.

public class SpriteColorer
    private SpriteRenderer sprite;
    public Color color;
    void OnEnable()
        sprite = gameObject.GetComponent<SpriteRenderer>();
    public void ChangeColor()
        sprite.color = color;