3
\$\begingroup\$

I've started working on my first game in Unity; It's very simple, there's a spinning block in the middle, and there are spinning blocks coming from all sides. When they hit the middle block, you lose a life. You have 3 lives. I've hit a bit of a brick wall, here, though; I can't seem to find anywhere how to use a sprite atlas as a font, or at least be able to sprite my own font. Does anyone know how to do this?

\$\endgroup\$
2
\$\begingroup\$

If you don't need fancy texture in your fonts, Unity supports True Type fonts, so you can render your text easily using the GUI system (for instance, drawing a Label).

In order to use Bitmap fonts you'll have to write the code yourself to translate the characters into sprites, or use one of the libraries available, like NGUI or Daikon Forge.

\$\endgroup\$
  • \$\begingroup\$ Thanks, I was going to use a sprited font, just cause it fit better, but I decided it looked fine the way it was anyway. I thought unity had a BMF thing in in, but I guess I was wrong. \$\endgroup\$ – Peyton Blanscet Jul 17 '14 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.