Book Image

Building an FPS Game with Unity

5 (1)
Book Image

Building an FPS Game with Unity

5 (1)

Overview of this book

Table of Contents (18 chapters)
Building an FPS Game with Unity
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Index

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, keep in mind that sometimes it may seem like Unity is frozen if the game is still running.

  2. Next go to the Standard Assets/Environment/Water/Water/Prefabs folder to drag and drop the WaterProDaytime prefab into the scene.

  3. Once in the scene, change...