Flash Light (Spot).No shodows

I attached spot light to camera but for some reason it does not cast shadows, in viewport everything works fine
When I press play(or pack the build) there is no shadows at all from my spot light

Hello Barzum

If you move your camera to the light a bit so you can see a bit behind those boxes on the left. You may be able to see them. Also if you change your light to movable it will allow for better results on something like a flashlight attached to a camera, which I assume is going to be moving in the level.

Thanks, the position of the camera causes the problem, and also attenuation of the light, everything works fine now