Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by unitygal · Aug 12, 2012 at 06:34 AM · text

What is the best text tool for dynamically displaying pixel-perfect text for a unity game on multiple devices?

I'm looking for a text solution that meets the following criteria, and I was wondering how the different text tools out there measure up:

  • dynamically displaying text

  • pixel-perfect

  • resolution-independent (will look good on multiple devices, different generation iPhones and iPads)

  • automatic text-wrapping

  • relatively straightforward to use

  • a plus if the solution includes text input fields, but not a priority

I know of Catlike Coding's Text Box, ex2D, 2D Toolkit, and EZGUI. How do these compare in terms of the criteria that I listed above. Is there one that covers most or all? What are the pros and cons of each of these text systems?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image The-Oddler · Jan 22, 2013 at 06:17 PM 0
Share

Ever found a good tool for what you're asking?

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by robertbu · Jan 22, 2013 at 08:59 PM

I can only comment on EZGUI. EZGUI can do all of the above, though there is a some work if you want pixel-perfect to be a similar viewport size on multiple devices. I found a significant learning curve in dealing with EZGUI as a whole, but the text portion (The SpriteText class) is fairly easy. They provide a video tutorial for making text.

SpriteText uses a single atlas of characters in the form of a texture and a font file that maps into the texture. At runtime, SpriteText builds a mesh (one rectangle per character) and sets the UV coordinates to point into the texture. If you change the text at runtime, SpiteText rebuilds the mesh.

As for authoring the bitmap atlas, there are three tools I know of (EZGUI does not provide one): Hero - a free cross platform tool; BMFont - a free windows tool; and GlyphDesigner - a commerical Mac tool.

As for managing devides with multiple resolutions, there are a couple of choices. You can author for some primary device and make the font pixel perfect on that device and let the font be resized on other devices, or you can detect the device and swap out the texture/material and font mapping file per device. There is no native support for this swapping, but it is just a matter of reasigning the material and a TextAsset. The quality drop from resizing was minimal to my untrained eye when resizing down.

Each SpriteText, is assigned to a specific texture, so within a SpriteText, only a single font size/face can be used. There is the ability to specify certain sections of the text assigned to a SpriteText object to be overlaid with a color.

I found the quality of output to be a bit below that of a native font on the iPad. Given it is a bitmap font, I expected it. Performance was very good. I ran a test turning all the paragraphs of a book into SpriteText objects and attaching them to a slider to create a scrollable book. Layout time on the desktop was aproximately .25s and about twice that on the iPad 3. Here is a screen shot from the inspector showing all the available settings for a SpriteText:

alt text


spritetext.png (23.3 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by tonic · Aug 26, 2014 at 12:29 PM

Hi, I'd like to mention my solution which fits most of your criteria: Pixel-Perfect Dynamic Text

It is meant to be a replacement for the built-in Text Mesh so it works in world coordinates, but it makes it possible to have just as crisp text as the built-in GUI Text. Internally it uses the same dynamic Font system than what Unity uses.

As of writing of this, there's no support for word-wrapping or text input fields. But it should be a very good fit for the other parts of your wish-list.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

GUIText Help 1 Answer

Changing the font of a tk2dTextMesh in C# 0 Answers

2D array problem in C# 2 Answers

How do I scale GUI Text but while keeping it "pixel correct"? 3 Answers

Change textAsset.text 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges