Can't use URP 2D Lights
Asked Answered
R

7

0

I’ve seen multiple tutorials on how to use 2D Lights in URP but nothing has worked for me so far. They say to create a pipeline asset, a 2D renderer and then have the 2D renderer be the default for the pipeline asset. Then have this asset be the one used in project settings>graphics.

Doing this still doesn’t let me add any of the 2D Lights to my scene(they are all greyed out). I’ve heard there’s supposed to be a package in the package manager called “2D Lights” but it has never appeared for me, even with preview packages enabled.

I’ve tried getting this to work on 2019.3.10f1 and 2019.3.3f1. What am I missing? Thank you in advance.

Recollect answered 18/1 at 12:8 Comment(1)

Which version of Universal RP are you using? I had this problem with 7.3.1, but downgrading to 7.1.8 seems to have fixed it.

Viperous
A
0

Update: I somehow solved the issue on my side:
There were still a folder “settings” in my assets, containing default renderer created at project start by Unity.
Removing this folder unlocked the 2D options.

I had to update existing sprite material by using automated tool (in Edit > Render pipeline), but after that 2D light are finally available

Anywhere answered 6/6, 2023 at 2:32 Comment(4)

You're a lifesaver, this is just what I needed! I was starting to think I'd never figure it out but now I can finally use 2D Lights. This works on my 2019.3.11f1 version.

Recollect

Exactly what I was looking for. Thanks a lot

Cotemporary

Thank you a lot

Tager

Yes! This was it chief. Thanks!

Elegit
A
0

I am having the same problem:( How can I fix this?

Acaroid answered 6/5, 2020 at 6:12 Comment(0)
A
0

Same for me…
I tried with 2019.3.12f1 and 2019.3.13f1, followed the tutorials, but the 2D lights are still greyed out and not available

Anywhere answered 6/5, 2020 at 20:15 Comment(1)

Update: I somehow solved the issue on my side: There were still a folder "settings" in my assets, containing default renderer created at project start by Unity. Removing this folder unlocked the 2D options. I had to update existing sprite material by using automated tool (in Edit > Render pipeline), but after that 2D light are finally available

Anywhere
A
0

Update: I somehow solved the issue on my side:
There were still a folder “settings” in my assets, containing default renderer created at project start by Unity.
Removing this folder unlocked the 2D options.

I had to update existing sprite material by using automated tool (in Edit > Render pipeline), but after that 2D light are finally available

Anywhere answered 6/6, 2023 at 2:32 Comment(4)

You're a lifesaver, this is just what I needed! I was starting to think I'd never figure it out but now I can finally use 2D Lights. This works on my 2019.3.11f1 version.

Recollect

Exactly what I was looking for. Thanks a lot

Cotemporary

Thank you a lot

Tager

Yes! This was it chief. Thanks!

Elegit
C
0

Hello, You can not use URP 2D light because you could not use 2D Renderer. After installation URP on your 2D project, you used to create an UniversalRenderPipelineAsset, when you create this asset files its automatically create a Renderer, which is useful for 3D project but not in 2D project, in the 2D project you have to also create a 2D Renderer from Create->Rendering->URP-> 2D Render. Now replace default Renderer by this brand new 2D Rander to your UniversalRenderPipelineAsset, Now Add this asset to your project graphics [Edit->Project Setting->Graphics->Scriptable RP Settings(select the asset)]

Chandler answered 6/6, 2023 at 4:40 Comment(3)

This worked for me

Buskined

this worked for me! I mistakenly created the 3D renderer (UniversalRenderPipelineAsset_Renderer). Once I created the 2d renderer and slotted it into the UniversalRenderPipelineAsset I was good to go, and all my stuff sprites turned black as planned, waiting to react to 2D lights. I had already given them lit materials.

Primordial

Lifesaver! Thank you so much

Dunderhead
E
0

Strange, for all of mine none are grayed but they just simply choose not to appear at all

Eutherian answered 4/9, 2021 at 7:19 Comment(0)
E
0

If for someone its not Working Maybe you are using Shaders. It must be Lit to be able to get lights Sprite Lit Or Lit for 3d

Emlyn answered 29/11, 2021 at 5:53 Comment(0)
P
0

I don’t know If anyone will find this helpful, but once you do get lights figured, out this Unity page really helps 2D Light and Shadow Techniques in URP | Unity.

Prepared answered 18/1 at 3:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.