Testing and diagnosis

With practically all games, you'll need to spend considerable time testing and debugging heavily to reduce bugs and errors as much as humanly possible. With this sample program, very little debugging and testing has been required by you, but that's not because the game is simple. It's because I've already prechecked and pretested most of the code and functionality before presenting the material to you in this book, ensuring that you get a smooth learning experience. For your own projects, however, you'll need to do lots of testing. One way to get started is using the Stats panel.

To open this, click on the Stats button on the Game tab. See Figure 4.46:

Figure 4.46: Viewing game performance information via the Stats panel

Get Unity 2018 By Example - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.