URP lights are not working in unity, they first worked - unity3d

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.

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?

Please does anyone know why my lights problem? It's just that on the unity site all the questions I ask none of them are answered I don't know why, but I only get help from these types of sites that unity itself.

Related

Unity's URP breaking my lightning settings

Im struggling with Unity 2021.3.6f1 LTS version, from which i created a 2D URP project template, and for no reason the directional light is not affecting anything.
The scene lightning button is toggled on, and the "Sun Source" option in Lightning/Enviroment is filled with a default directional light.
Could not find anything related to this, in this version. All fixes point towards adding the Directional Light into Sun Source options, but I've tried it and couldnt get it to work.
If anyone knows something I can try out, let me know. Thanks!
(IMPORTANT)
Edit: URP seems to be breaking my lightning settings! If i remove URP from the render pipeline asset option in project settings, it fixes the lightning, but i cant get the URP version to provide lightning for my objects in the scene...
Edit2: Loaded unity's 3d urp template into a new project, added my stuff in it and everything works fine, but i would like to know why it doesnt work in the other way, or what was i missing, since i couldnt find out.

why my skybox disappeared after I added the urp package?

I want to add light2d to my project, but it's a decision I made after months I started the project, so then I added the urp package.
But something strange happended: my skybox disappeared. I mean, it can't display neither in my scene view nor game view, it seems it's totally transparented instead of a material error.
I have checked my lighting settings and camera settings, but there's no problem.
I tried to restart Unity editor, but it can't solve the problem.
Sorry for poor English, hoping you can read this.
If you use a "URP Asset (with 2D Renderer)", it wont use the Skybox material set in Lightning -> Environment.
Its probably by design i guess (2D dont need a "box", instead a rect will suffice).
Use the other Asset (with Universal Renderer) or set your "Skybox" as Sprite material in the scene.

Spot light doesnt work for virtual reality in unity Urp

My point lights renders in unity but it wont render in the oculus headset. What could be the cause. I Could not find a solution online.
I am using URP
Add more details if possible, are you using baked lighting, mixed, realtime? It might be your light per pixel setting.
Try to disable any other light in the scene and leave only the spotlight, increase the spotlight range and check if the spotlight works.
If it does, then it's your light per pixel/vertex count, you can edit it from your Settings folder, opening up the URP profile you're currently using, it's called Per Object Limit:
Do not go beyond 1 on the Quest and bake lights if they don't have to be dynamic.

Light Baking Issue

Before I have real-time lighting because of the performance issue, I decided to do light baking for my 3d game.
So I have mark 3d environment as static because it remains on screen always without movement.
Also changed direction light mode to Mixed because I have few moving game objects too.
But after the baking process gets completed, I got this kind of output:
In above, you can see in the above image what happened with my environment after baking and I have also included light settings if you need it.
You have to enable lightmap UVs in your 3d imported model file.
I got this reply from one Unity forum member so exact wording, I am posting here:

Unity Light baking causes artifacts

I am getting artifacts when I use light baking.
When I apply the same material to a Cube generated in Unity it does not happen to the cube. But on the imported model you can see
I have checked the model and tried everything I can think of. There is others with the same issue on the Unity Forum.
Any ideas ? I dont seem to get help from the Unity Forum. :(
You should finetune your lightmap settings. There is a pretty good tutorial I know from Youtube that explanes how it works.
https://www.youtube.com/watch?v=VnG2gOKV9dw