O'Reilly logo

Unity 5.x Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding water

We created the lower section of our gameplay area to be the water level or where water will be. This can be a useful tool as a level designer to designate places that players can't go to if you can't swim. Thankfully, it's also quite easy to add to our level, and due to it being included with Unity, we won't need to go to the Asset Store to get it.

  1. From the Project tab, go into the Standard Assets/Environment/Water/Water/Prefabs folder to then drag and drop the WaterProNighttime prefab into the scene.
  2. Once in the scene, change the object's Position to 250, 90, 250 and give it a Scale of 250, 1, 250 so it covers the entire area. Next, in the Water Script component from the Inspector tab, change Water Mode to Reflective. This will make ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required