Hello everyone, I've been having a problem with Light 2D for some time now.
I work with pivot points so that the player can tell when they are behind a house, for example, and when they are not, in order to display the SpriteRenderer visually correctly. This works great, and at a certain point, the character disappears behind the house.
But now to the problem. The light stays there, of course, because it continues to illuminate the layer that was specified. My actual goal would be that as soon as the player disappears through the pivot point, the character no longer illuminates the target.
I've attached a picture, maybe someone knows the problem.