The in-game debug window
We will dig into debugging and profiling your application in the final chapter of this book; this section won't be about that. This will be a simple textbox that gets attached to the camera. To keep it simple, we will headlock it.
The reason we do this is that when we need to test certain conditions, we get an immediate response without having to linger over our computer.
To keep this in the scope of this section, we will create our own statements when we need to. Again, I will show you.
The prefab
First, you need to look in the Project View and drill down into the HoloToolkit
| UI
| Prefabs directory
like we have before, select it, then click and hold the 3DTextPrefab,
and drag it to the Hierarchy
view:
Now, select the prefab, and in the Inspector
, click on the small donut next to the words missing font, then select the Arial
font:
With that done, click back on your Hierarchy view ensuring that 3DTextPrefab is still selected and press Ctrl + D to duplicate that prefab...