Unity's URP breaking my lightning settings - unity3d

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.

Related

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.
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.

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.

Hololens + Unity: GameObjects are invisible

After I build my Unity project and send it to the Hololens, I have the following problem:
The splash screen appear followed by a debugging window on the bottom. In the background is a white net. However, you can't see any game objects. I've tested a lot but haven't found a solution for that. Visual Studio does not display any error messages. What I've looked at roughly:
These are my modules. Im using the 2019.4.22f1 version of Unity and the MRTK Foundation Toolkit 2.7.2.
My build settings
My project settings
I tried to place the objects in the middle of the camera and changed the colors.
MRTK settings I haven't changed anything most of the time
Main camera settings
My scene
When i start the scene i get this error in the console. I dont know if this has anything to do with my problem
i have two possible solutions (no guarantee)##
you could spawn the objects on input directly in front of the
camera, add a debug.log("object in front of you"); so you can find
the issue.
If this doesnt work i would try to test differnet types of materials
like you do with HDRP.
if this does not work either i probably cant help you out now.
It seems like your GameObject is too far to be hidden behind by the mesh. Please make the spatial mesh invisible by setting the Display Option property of Spatial Mesh Observer Setting to None, this item can be found under the Spatial Awareness profile of the MRTK profile.

Light in the scene window got way brighter after upgrading to Unity 2018.2.18f1 but the game window shows light correctly

So I had a project that I created using unity 2017.3 now I decided to move to Unity 2018.2.18f1 and notice a very annoying problem that I can't seem to solve,
the lighting in the scene window got way too bright on the other hand in the game window even before hitting play it shows the correct light. here is an image of the issue:
I tried everything out there that worked on past versions with no results, trying removing auto generate and generating the lightmap manually, tried to change the reflection source from skybox to custom didn't work.
although in the game it self the light is correct so it didn't really break the project but it is really annoying designing levels this way
any insight on this would be great.
Sometimes, issues occur when upgrading a project to another Unity version. If the issue is related to lighting do the following in order:
1. Delete the lights in the current scene then create new lights. For some reason, there seems to be light issues carrying it's settings to the new Unity version and creating new lights usually fixes it.
2. Go to Windows --> Lighting --> Settings then go to the Scene tab. Scroll down and disable Auto Generate checkbox then click the Generate Lightning button.
3.Go to Assets --> Reimport All.
4. If everything above did not work, go your Project's Library folder then delete it. Restart Unity.

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