Every developer will, at some point, face an unexpected issue or problem that blocks their progress to further development. It could be something as malignant as a hidden syntax error or far more serious. Either way, the developer must use the tools at their disposal and work past the problem. This chapter will take a look at introducing or familiarizing you with the various troubleshooting tools available to mobile Unity developers. After that, we will take a more advanced look at some specialized tools to use when the problem seems especially difficult. Of course, we will also want to cover options for tracking issues or even preventing them. Then, at the end of this chapter, there will be a table provided for reference, to assist you in solving issues that you may encounter working your way through the chapters in this book. Here is a list of the major topics we will cover in this chapter:
If you have jumped ahead to this chapter from a previous section of the book, and you can't get past due to an issue, then please jump ahead to the last section in this chapter, Issues and Solutions by Chapter.
The Console window should be your starting place whenever you encounter an issue. It can be accessed from the menu by selecting Window | Console, which will open the Console window that you can dock within the editor as you see fit. Depending on your preference and experience, you may want to always have the Console visible. Either way, as soon as something goes wrong, it certainly should be the first place you check.
Let's take a quick tour of the Console window in some detail, as it will be central to several other elements in this chapter:
The Console window with typical configuration
How about we take a look at what each of the buttons do and some helpful hints you may not find in the Unity documentation:
The icons on the right-hand side of the window are described as follows:
The context menu is explained as follows:
Console window context menu shown
So, the next time something goes wrong, be sure to start with opening the Console. In the next section, we will look at a set of compiler messages sent to the Console.
3.147.42.168