I am new to Unity and I've been playing with the unity FPS microgame and I can see shadows being cast from the directional light and the shadows move with the light in the editor but when I build the game to an .exe I don't get any shadows just the light. I've tried getting rid of all my quality settings except for one with shadows enabled. I've tried generating lighting I've tried logging to a text file the chosen Quality settings and the QualitySettings.shadows and it's all set up as expected (shadows = all and the quality setting is the one I have selected in editor). I don't understand why shadows have no problem rendering in the editor but don't in the build. Anyone know what causes this?
I have the same problem. The solution I am working on at the moment is to export all my scenes and reimport them to a new project. This seems to work, but causes a lot of issues, since there are things like .hlsl scripts and subgraphs which don't get exported / imported. Also issues with terrain material not exporting or importing correctly. I have been using Unity 2019.3.0f6 and URP 7.2.1 to build my project and considering now to update to URP 7.3, but after banging my head against the wall, Unity crashing and sometimes losing URP totally (it just disappears from the project and doesn't allow to select an URP profile or create a new one, even though I've removed it and reimported it via package manager many time) perhaps it would be wisest to stick with same versions for both :/
I have this problem as well. Unity version info. Version: 2020.3.13f1.629 Personal Revision: 2020.3/staging 71691879b7f5 Built: Sat, 12 Jun 2021 14:55:54 GMT