• 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
-1
Question by biohazard · Jun 07, 2011 at 07:03 AM · meshtextcomponentfont

Problem with displaying a value digitally

Hello,

most people around here already know that i'm working on a dashboard project and since i got complaints from some people i will post a new question about it.

I want to digitally display the numeric speed/rpm/whatever values on my speedometers and have them update.

I tried with a textMesh, but they are very unhandy to place and mess up as soon as i change my font.

Do you know of a possible solution?

thanks in advance

Comment
Add comment · Show 5
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 Meltdown · Jun 07, 2011 at 07:32 AM 0
Share

Are you going to be changing your font often, or just once. How exactly are they messing up?

avatar image biohazard · Jun 07, 2011 at 07:34 AM 0
Share

the font is only assigned once, while the value is supposed to change once a second.

$$anonymous$$essing up means : become undreadable

avatar image Meltdown · Jun 07, 2011 at 07:51 AM 0
Share

Cool try what I suggested in my answer.

avatar image Meltdown · Jun 07, 2011 at 09:07 AM 0
Share

Sorry, I was getting confused between a GUI Text component and a Text $$anonymous$$esh Component :/

avatar image biohazard · Jun 07, 2011 at 10:08 AM 0
Share

no problem xd

1 Reply

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

Answer by Retribution · Jun 07, 2011 at 02:11 PM

When you say the font become unreadable, does it appear that your letters are just becoming mangled garbage? I believe what is happening is, if you are changing the font of your text mesh, but you are not updating the material/texture your text mesh is using, your font will become unreadable, as it is using a font type and a material that do not match.

Based on the scenario you described, I'm assuming you're changing your font through script at runtime. Try also updating the material of your text mesh with the material of the font when you assign your text mesh a new font.

You can also test this in the editor while the game is not playing as well to see if this is your issue. If you have a text mesh object you can access, drag a new font onto that object in the editor and watch how the font changes. If you drag that fonts material onto your object as well, you should see it update and become readable again with your new font type/size.

Hope that helps

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Outline Text From TTF. 2 Answers

I can't change the text mesh 1 Answer

Importing Custom fonts into Unity? 5 Answers

Text Meshes not rendering correctly on iOS device 1 Answer

Disabling/enabling canvas component causes weird text/font problems on Android 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges