Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, folder names, filenames, file extensions, pathnames, and user input are shown as follows: " For this recipe, we have prepared the font that you need in a folder named Fonts
in the 1362_01_01
folder."
URLs are shown as follows: Learn more about the Unity UI on their manual pages at http://docs.unity3d.com/Manual/UISystem.html.
A block of code is set as follows:
void Start (){ textClock = GetComponent<Text>(); } void Update (){ DateTime time = DateTime.Now; string hour = LeadingZero( time.Hour ); string minute = LeadingZero( time.Minute ); string second = LeadingZero( time.Second ); textClock.text = hour + ":" + minute + ":" + second; }
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "In the Hierarchy panel, add a UI | Text GameObject to the scene – choose menu: GameObject | UI | Text."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.