CookieM_2019
CookieM_2019

Reputation: 17

URP lights are not working in unity, they first worked

My project uses the URP lights that were well configured, but a while ago they stopped working, they even disappeared in the menu, the lights that are in the scene do not work and there is the following error: "error 2d renderer data must be assigned to your urp asset or camera". I am not able to fix this error.

No URP lights, and the lights error is global or normal that already had in the project

It has URP lights, but it doesn't let you add it

URP configuration

URP configuration

I have already reinstalled the URP and configured it again and the problem persists.

Upvotes: 0

Views: 6131

Answers (2)

ow3n
ow3n

Reputation: 6607

Another consideration for others who arrive here... you might have assigned a 2D renderer data asset to URP asset.

You want the regular universal asset (not the 2d). You can then select the new (non-2d) one in Project Settings > Quality > Render Pipeline Asset

menu

The assets look essentially the same

URP assets compared

But they link to entirely different renderers

URP renderer data assets compared

The 2d renderer (on a 3d model)

2d

And the updated renderer

3d

Upvotes: 0

IShix
IShix

Reputation: 196

I don't know why, so please check them one by one.

Is this a Render Pipeline Asset for 2D?

enter image description here

enter image description here

Have you set it to Quality setting?

enter image description here

Did you set it to Graphics setting?

enter image description here

Is the Camera's Renderer specified as Default Renderer or 2d's Renderer Pipeline?

enter image description here

Upvotes: 1

Related Questions