• 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

1 Reply

· Add your reply
  • Sort: 
avatar image
4
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!

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

69 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

Related Questions

Fitting a box collider to 3D text perfectly 1 Answer

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

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