Adding water

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

  1. Go to Assets | Import Package | Environment and wait for it to load all of the objects it has. Once the entire package loads, we only want the basic water materials. First click on the None button at the bottom, shrink all of the folders, expand Standard Assets folder, and then check the Water folder. After you've done all of this, click on the Import button.

    During the import process, ...

Get Building an FPS Game with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.