2D Shadow Caster with multiple lights - Shadows don't work correctly?

Unity 2020.1
URP 8.2.0

With multiple light sources the shadows from Shadow Caster 2D don’t work correctly. See attached image: With both lights turned on, the character shouldn’t have this long shadow but the light from the left torch doesn’t seem affect its shadow.

1 Like

I found a solution. Edit ShadowCaster2D.cs at line 121 to always return true. This fixed the issue for me!

It is good that you are trying to help but I would ask that you please stop cross-posting. You have posted this a total of four times now and are necroing old threads too.

Thanks.