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
0
Question by Uteki · Nov 21, 2019 at 03:06 PM · text

Text mesh pro - Vertical Text

Hello, How you can set text in TextMeshProUGUI to render vertically instead of horizontally? I cannot find any option to switch text orientation.

Cheersalt text

vertical-text.png (11.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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by $$anonymous$$ · Nov 21, 2019 at 06:28 PM

change gui width to zero and give some positive height.

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 Larry-Dietz · Feb 20, 2020 at 03:14 AM 1
Share

The problem with this, is you lose the ability to use Auto-Size on the text. If Auto-Size is selected, the font will default to the $$anonymous$$imum size.

If anyone knows a way to get vertical alignment without losing the auto-size ability, I would love to know how you accomplished it.

Sorry for necroing this post. -Larry

avatar image
0

Answer by TheTrueDuck · Jun 01 at 01:11 PM

There is a rotate tag which rotates each of your letters. So if you rotate them by 90 degrees, then un-rotate your gameobject by -90 degrees, you'll have a text object which you can rescale to your hearts desire, and which even works with paragraphs (docs.unity3d.com/Packages/com.unity.textmeshpro@4.0/manual/RichTextRotate.html)

You will probably need to increase the spacing per character in the spacing options, as there may be some intersecting letters now that the characters are rotated, but as long as the WD% in the auto size options is low enough (or ideally zero), it should work without a problem. alt text If you want to go the extra step you can even create a custom stylesheet option in "Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset" which will automatically add the rotate tag (and maybe a vertical offset tag) at the beginning and end, and that way all you have to do is change the text sytle dropdown from normal to your new style sheet. (gameobject rotation and character spacing will have to be done manually though)

docs.unity3d.com/Packages/com.unity.textmeshpro@4.0/manual/StyleSheets.html alt text

@Larry-Dietz This should also work with auto-sizing, as opposed to just setting width to zero


bb2022-06-01-125254.png (230.7 kB)
screenshot-2022-06-01-124855.png (39.6 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
avatar image
0

Answer by hirenmakwana · Jun 01 at 12:23 PM

keep wrapping enabled and set width size to something that can contain the character without size reduction, it'll work with auto-size too.

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

124 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 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

A text apears on the screen when you enter a trigger 1 Answer

Gui text component on an object not showing up? 0 Answers

Having proper text areas in unity? 0 Answers

I cant read the file i wrote, unless i reload it in VS. 1 Answer

Can TextMesh support multiline text? 1 Answer


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