Water Problems

Hello everyone! I’m new to Unity and I’ve just built my first map, which contains a large lake in the center of it. I’m using the free version of Unity, so I have basic daytime water, which works fine in my scene view; however when I press play and enter my game view, the water floats upwards through the terrain and out of my camera’s sight. I’ve checked the components to see if there was some stray featuring causing it to do that, but there wasn’t one. Anyone know what’s going on? Thanks!

Also, my lens flare is appearing in completely different place then in game view, then it does in my scene view.

It’s tough to determine the cause of your water problem without knowing more information first.

First, do you have any scripts attached to your water object perhaps? There may be a line of code in there giving the water’s transform an upward motion, possibly in the Update function.

There is currently only one script attached to the water and it is the “Water Simple” script that determines wave scale.

And I’m guessing you didn’t edit it then either… hmm.

Is it possible that you accidentally added a Rigidbody component to both your camera and terrain? This would cause both the camera and the terrain to fall but leave the water, making it appear that the water is flying upwards.

I found the problem lol For some reason my terrain had a character motor and controller attached to it, so that explains why the water appeared to fly upwards because the entire terrain was moving downwards…oops.

Lol that’s what I thought was happening. It happens!