Time for action - rides again create a font texture and material

Ha! I knew you couldn't resist. In order to change the font of this GUIText, and to see it in a different color without waiting for the code to run, we need to import a font, hook it up to a Material, and apply that Material to the GUIText.

  1. Find a font that you want to use for your game clock. I like the LOLCats standby Impact. If you're running Windows, your fonts are likely to be in the C:\Windows\Fonts directory. If you're a Mac user, you should look in the \Library\Fonts\ folder.
  2. Drag the font into the Project panel in Unity. The font will be added to your list of Assets.
  3. Right-click (or secondary-click) an empty area of the Project panel and choose Create | Material. You can ...

Get Unity 3D Game Development by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.