In the image below, the sprite on the left is the player with the sorting layer “Teleportable”. The big rectangle belongs to the “Portal Preview” sorting layer. I want the lights to affect the “Teleportable” sorting layer but not the “Portal Preview” sorting layer.
When I add the “Teleportable” layer to the target sorting layers, “Portal Preview” sorting layer also gets affected by the light as in the image below.
