No shadows in build

Hi. I’m having trouble getting shadows to appear in a build. They appear fine in the editor. I’m using Unity 5.6.1f1. I’ve been messing around with any settings I can find relating to shadows, lighting, camera clip planes, quality, but nothing I do has fixed the problem.

I’ve made a sample project so you can see the issue (link below). There is one scene with a directional real time light with a plane and few cubes. When run in the editor the cubes clearly cast shadows. However, when run in a build the shadows are no longer present. Any help would be GREATLY appreciated as I’ve spent way too much time trying to figure this out. Thank you.

The only way I was able to reproduce your issue was to set “Graphics Quality” to “Fast” or “Beautiful” in the “Resolution Dialog box”. You can enable the “Resolution Dialog Box” by Clicking on File>Build Settings> Player Settings.
Than in the “Resolution and Presentation” tab set “Resolution Dialog Box” to “Enabled”.

If you start the build with “Fantastic” settings Unity will draw shadows correctly. In other modes UNity tries to minimizes draw calls by either disabling or minimizing effects which are heavy on processor and graphics card, this includes removing shadows.

I am attaching screenshots for your reference below.

Tried building again today and it’s magically fixed. Maybe after updating the graphics driver the computer needed to reboot for it to take effect.

Try to get closer with the Camera.
In my case, the camera was too far.