Hello
I am developing a game called Silk Soul, and I am facing difficulties with 2D lights. My intention is to use different layers (sorting layers) to illuminate objects at varying depths, especially to simulate light in a deeper background. However, I am encountering persistent issues with the light configurations.
What I’ve Tried So Far:
- Using Global Light 2D:
- I managed to illuminate all layers using the “Everything” setting, but when I switch to “Back,” only the background layer is illuminated, and the “Midground” and “Foreground” layers become invisible.
- Using Spot Lights 2D:
- I tested configuring the lights to illuminate each layer individually, but when trying to use “Midground” or “Foreground,” the objects become invisible.
- Free Form Lights:
- Similar to the results of the other lights, I can only illuminate objects when setting it to “Everything.” Individual layers do not function as expected.
What I Hope For:
I am looking for a solution or guidance on how to make 2D lights illuminate objects on different layers according to the “Target Sorting Layer” setting. My sorting layer hierarchy is as follows:
- Background
- Midground
- Foreground
- Default
Any help or tips on how to resolve this issue would be greatly appreciated! I’m open to trying other solutions and would like to know if anyone else has faced something similar.