Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
-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.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

I can't change the text mesh 1 Answer

A node in a childnode? 1 Answer

Outline Text From TTF. 2 Answers

Text Meshes not rendering correctly on iOS device 1 Answer

Importing Custom fonts into Unity? 5 Answers


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