Should the ShadowCaster2D casting source Tilemap Collider 2D already work?

Hi,

I am using Unity 2023.2.14f1 with URP 16.0.5.

[I’ve noticed]( Script for generating ShadowCaster2Ds for Tilemaps page-2#post-8707710) that when you add the ShadowCaster2D to a Tilemap that has a TilemapCollider2D you can actually select the TilemapCollider2D as a shadow source:

In the following image you can see a part of the scene:

The strong white lines is the ShadowCaster2D shape.

Directly below the light there is just an empty game object with a ShadowCaster2D. That one is generating a shadow, but the ShadowCaster2D on the Tilemap is not generating any shadow.

Since there is no documentation for that already, I wonder if that should work at all or if it is just in development?

Ok, after some more investigation, it looks like my issue is because I only have one Tilemap.

I paint the ground tiles and wall tiles on the same map, so I can make use of RuleTiles, which only works on the same Tilemap:

9729199--1391011--2024-03-26_22-37-52 (1).gif

Am I now required to split it up in order to use the ShadowCaster2D correctly?