0

Hello guys I have an Universal renderer pipeline asset installed in my Unity editor, the problem that I am facing is I want to get that 2D lightning in front of and behind certain objects.

I have tried several solutions including changing Z position of objects and even tried sorting order but nothing has been working out, the lightning always gets behind objects and it does not come in front of them.

6
  • can you share more about your lights as i didnt need them in my game but i threw in a 2d spot light and hey presto it lit the front of my things Commented Sep 24, 2023 at 18:56
  • Please provide enough code so others can better understand or reproduce the problem. Commented Sep 25, 2023 at 0:19
  • By in front/behind you mean regarding the position or layers? The second I would have a follow up question: What does behind mean when speaking of lighting and layers? You mean you want to exclude certain objects from receiving light? Commented Sep 25, 2023 at 13:44
  • By behind I mean by position I want the lightning to appear behind objects Commented Sep 25, 2023 at 15:47
  • It is 2D light, there is no behind or in front, there are only layers there are affected or not. Commented Sep 25, 2023 at 17:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.