Welcome to the final chapter of our first game. If you have been following this book chapter-by-chapter, you will have developed a strong foundation for using Unity. This chapter is an important one because it will explain one of the most crucial and difficult elements to get right when it comes to a game's experience. That is the user's interface, or simply, the UI. Don't let the title fool you; while it may be tempting to think of a UI as something trivial, simply on-screen graphics to convey information, there are many aspects of a UI that can cause problems (for example, navigation). We will discuss all of this through this chapter and then how to implement a basic UI in our game.
In this chapter, we will cover:
- The basics of the UI
- Four types of the UI
- Building the UI
- Scripting the UI and integrating with the collection systems
- Building a basic map
- Testing
- Other things that the reader could consider adding to the game later
By the end of this chapter, you will:
- Know how to implement a basic UI into Unity
- Build a basic game map
- Learn about best practices for testing games