Reputation: 17
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
I have already reinstalled the URP and configured it again and the problem persists.
Upvotes: 0
Views: 6131
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
The assets look essentially the same
But they link to entirely different renderers
The 2d renderer (on a 3d model)
And the updated renderer
Upvotes: 0
Reputation: 196
I don't know why, so please check them one by one.
Is this a Render Pipeline Asset for 2D?
Have you set it to Quality setting?
Did you set it to Graphics setting?
Is the Camera's Renderer specified as Default Renderer or 2d's Renderer Pipeline?
Upvotes: 1