Hey. I’ve been messing around with the 2D Light Sources / Shadow Casters but I can’t make it work like I want it to. I have tried other tutorials but I was wondering if the effect could be mimicked using these components.
As the pic below shows: I would like to have a global light, so I can see the map, but hide certain objects (coins on the pic) if they are in the shadows. They are already on separate layers, added multiple lights/cameras/materials, without luck ![]()

You could try a SpriteMask, which won’t be able to do “if in shadow, then show.” Outside of that, there’s no easy out-of-the box way to do this.
Maybe you could try something fancy like:
But that’s just a suggestion, untested.
Code monkey has a solution for you, but he uses meshes and change the mesh renderer ibstead of lights and shadow casters.
I have done this tutorial, and it worked, however I would like to work with the new built-in stuff to try another approach.
I had no luck with the Sprite Mask (+script editing) approach either, so still open for suggestions!