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

Coloring your world


This is looking good. We've got a nice foundation to build upon, but it's pretty barren. We can't use textures yet, as it's a ProBuilder-only tool. But we can apply colors to our walls to help differentiate the areas. Let's see how we can do this now.

  1. Go back to our first room and select the top section of our doorway walls. Then, click on the Vertex Colors button from the Prototype tab.

    This will bring up an example number of colors, but we can customize them by clicking on the bottom section.

  2. Now, with the faces selected, click on the blue button.

  3. With this, we have some color. Let's add some color to the other room from the outside. Select the sides and top of the room and click on the red button.

  4. Then, do the same to the other sides for both of the changes we made.

  5. Save the level and start the game.

There, we have it! This was a simple example; as you build your levels in the future, this can be a good way to help players mark certain areas or help break issues with only...