Darken Tiles

Hey everyone,

I am actually working on an tile based medieval city builder (like Anno or Kingdoms and Castles).
Now i want to darken the tiles, that aren’t owned by the player. But i don’t have an idea how to achive this. Maybe some one of you have a tipp or solution for me.

I have attached two images, where you can see how it looks in Anno and Kingdoms and Castles.

Best Regards


You can achieve this with many shaders that allow a ‘tint’ color setting. This means you need to create a material with such a shader, and know how to change the tint color via script (all not terribly difficult (even writing the shader isn’t in this case), but will require you to look up a lot of things if you haven’t done something like this before). Best bet is probably a ready-to-use asset from the asset store, or from a tutorial.

You can search for “Fog of war Unity” if you want to find tutorials. That’s how it’s usually called, even without war going on :slight_smile:

Hmmm. Isn’t ‘fog of war’ masking tiles that are invisible (i.e. not near to own Units) to the Player? Similar in concept, I’m sure, but much more complex.