Hi! I am trying to set my lighting in my 2D game so that only the lights I have effect the lighting.
(everything is black if no lights in scene).
I have watched and followed multiple videos saying I should switch the render pipeline to URP but it still doesn’t work… I guess I am doing something wrong somewhere but I cannot find it.
Thanks in advance!
screenshots that can provide helpful information:
how the game looks:
another piece of information that may help is that I installed and uninstalled HDRP if it makes any difference
You are probably doing one of these wrong:
- not using sprite lit materials or
- using 3D lights instead of 2D lights
- have different Z values for 2D lights and sprites; which makes the sprites not in range of 2d light source
- your 2d light target sorting layers is wrong
- you are looking at the scene view and the scene lighting button is disabled

Look for Unity 2D light tutorials online, there is plenty
Hi! Thanks for replying :).
- I am
2, 3, 4. I have no lights at all in my scene
- It made no difference
(I get the same visuals in game mode)
as I said, I have watched so many of 'em, I can’t find the one thing that makes this whole thing not work
Then add some 2d lights?? How do you expect 2d lights to work without adding any 2d lights to your scene?
Cheers
I want the only lights in my scene to be from the lights I add.
I have no lights, yet everything is lit up
Oh that was the problem
Just add a global light 2d, set its intensity to 0; that’ll do what you want
Hurts me to say this is true.
I thought adding global light 2D and setting it to 0 will have the same effect as not having a global light at all.
guess I was wrong :).
Thank you so much !
I try all you tips but nothing work there should be 2D light for a 2D project but there none and the 3D light don’t work to illuminate the scene
Heyo, next time please create a new thread instead of necroing another thread
You probably made an error while upgrading your project to 2D URP
It is also possible you somehow removed the urp package or haven’t assigned the urp asset in the graphics settings(I doubt this last one is the main problem though)
I think it more a bug with the 2022.3 version I have
That is possible, just create a new thread and ask it or create a new 2d urp project with the same version or upgrade to another version or check the changelog for a similar issue that is fixed
Just don’t necro old posts
Cheers