Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 nyonge · May 27, 2017 at 02:20 AM · texttextmeshprooutlinetext mesh

TextMesh Pro Thicker Wider Outlines

Is there any way, using TextMesh Pro, to create thicker outlines?

Right now the thickest outline I can make is only about ~20% the width of the letter - so if the letter is 20px wide, the outline is max around 4 or 5px. I achieve this by setting the text's Face Dilate setting to 1, and then Outline Thickness to 1.

What I want is a THICK outline that the letter sits inside, so if the letter were 20px the outline would be around 100px. In the picture, the "story" text up top is created with TextMesh Pro. The huge "sa" below is a premade sprite showing how big I want the outline to be, relative to the letter.

alt text

Is there a way to achieve this? I know TextMesh Pro's outlines are created using the font asset creator atlas, hence why the letters have blurry edges in the atlas. Is there a way to make those blurry edges way bigger, so I can extend the outline much further? I wouldn't mind having a huge sized atlas if it meant I could get the effect I want.

Thanks!

screen-shot-2017-05-26-at-101840-pm.png (324.5 kB)
Comment
Add comment
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

2 Replies

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

Answer by Stephan_B · May 30, 2017 at 06:18 AM

The effective range of Material Properties is controlled by the ratio of Sampling Point Size to Padding which is explained in the Font Asset Creation video as well as FAQ Question 11 on the TextMesh Pro user forum.

Therefore by regenerating the font asset to increase the padding value relative to the sampling point size, you will increase the effective range. For instance if the original sampling point size was 50 point size with a padding value 5, you range would be about 10%. By increasing the padding to 10, you would effectively double this range.

Comment
Add comment · Show 1 · 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 nyonge · May 30, 2017 at 08:20 AM 2
Share

Yup, that got it! I increased the padding, and also had to increase the atlas resolution, but the effect is exactly as I wanted. The thick border overlapped each adjacent character though, so I just created a second Text object to sit on top of the completely-white border.

Thanks for your help!

avatar image
0

Answer by feds · Nov 01, 2021 at 04:06 PM

I created a shader for that so we don't need to create a second Text Object as commented above, btw my solution was based on this post so thanks for both of you @Stephan_B and @nyonge


https://forum.unity.com/threads/tmpro-draw-external-outline-before-faces.503999/#post-7619947


alt text


tmp-outline.jpg (293.2 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

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

70 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

TextMesh Pro visible in editor but not in game window. 2 Answers

How to find position of sprites generated by tag in TextMesh Pro? 0 Answers

Strok/Outline around TextMesh using Shader? 0 Answers

Text Mesh Pro: highlight all words in a link 0 Answers

How hard is to replace UI Text with Text Mesh Pro? 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