O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required