2D Tilemap won't cast shadows

Hello !

I’m making a game using TileMaps but I can’t manage to have shadows with the tiles. The Tilemap is proceduraly generated so I can’t set up the shadow caster 2D before hand. I also tried changing the Casting Source but it didn’t change anything.

Obviously I have shadows activated on my projects and they work when i place manually the Shadow Caster, but once again it won’t work with the tilemap since it’s a random map.

Thanks a lot !

There are solutions for automatically adding shadow casters to tilemaps

One of them is(I havent tested it yet): Script for generating ShadowCaster2Ds for Tilemaps

Cheers