S
S
stictt2019-01-17 08:58:48
Unity
stictt, 2019-01-17 08:58:48

How to programmatically change the color/hue of a sprite in Unity?

You need to somehow programmatically change the color / tint of the sprite, it is desirable to find a simple way, something that came to mind is to make several layers, the first is the base sprite, then there is a series of sprites on top of it with an alpha channel, the color of which will slightly replace the bottom one. But it looks like towns. Is there something easier?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-01-17
@stictt

Depending on what the sprite is rendered through.
If through Image (UI) or SpriteRenderer - then this component has a color.
If you don't like how it is applied, write your own shader.
everything is simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question