Shadows not working properly

How come the shadows caused by my direction lightning (sun) are removed when I add water?(the pre-built advanced water4)
This is only after I’ve actually built the game by the way.
In the editor and ingame in the editor it looks like this alt text

and this is after I’ve built the game and gotten ingame
alt text

Did you check your quality settings? They influence the number of shadows rendered at a single time and also limit their visibility based on their distance from the observer.