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
2
Question by Iris · Dec 28, 2010 at 01:41 PM · textmeshpixel

How can I set TextMesh's font size to pixel size?

I will use TextMesh to render GUIs. (and support unicode characters.) and I cannot use GUIText or GUI.Label in some reason.

I have orthographic camera for GUI, and size is always half of screen height. It perfectly matchs world position 1 to pixel position 1.

I make TextMesh GameObject which font size is 32, and character size 1. but It looks very small in game play screen. I want to 32 size font renders perfectly 32 pixel size. How can I?

Or Is there some formular to create polygons in TextMesh?

Or I hope freetype lib ported in c#.. (not dll, because of web publishing)

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 Ludeme Games · Oct 11, 2013 at 07:44 AM 0
Share

I'm also having this same problem.

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by dissidently · Dec 29, 2010 at 01:17 PM

Change the scale of your textmesh. This way you can make it smaller or larger as you require. I'm running mine at 0.05 scale, going the other way, making very large font textures smaller so that they're perfectly aliased when close to the camera. You'll need to go the other way, making the scale larger.

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 Ludeme Games · Oct 11, 2013 at 08:39 AM

You need to set both character size and text size. If font size is the world unit desired size, set character size to 10. See here - http://answers.unity3d.com/questions/55433/textmesh-charactersize-vs-fontsize.html

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 · Feb 24, 2014 at 01:43 PM

You could try using my Pixel-Perfect Dynamic Text asset which is an alternative for TextMesh.

For Pixel-Perfect Dynamic Text you set text size in world units, and it will automatically figure out the closest actual pixel size for your current camera and dpi and screen resolution.

http://strobotnik.com/unity/dynamictext/

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 GoldenProlix · Apr 24, 2016 at 02:38 AM

(For the new UI system) On the object go to Text (Script) >> Paragraph >> Best Fit, check that box (and make sure Font Size is not 0). Then change the scale of that to the desired size. This will also make sure the text stays clear unlike simply changing the scale.

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

Font Metrics 1 Answer

Sphere and text mesh in prefab share transformation matrix 0 Answers

How to set player name on object in multiplayer? 0 Answers

Multiple issues with the TextMesh component 0 Answers

Text Mesh to Mesh ? 2 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