• 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
5
Question by OUTERDARKNESS · Feb 26, 2018 at 06:31 PM · font size

UI Text Font Size not working with World Space Canvas Scaler

Hello, I'm trying to make a world space UI Canvas, and notice that having the Canvas Scaler component enabled makes all Text elements no longer respond to font size. Is t$$anonymous$$s a bug? If not, what is the intended method to adjust font size w$$anonymous$$le using the Canvas Scaler component?

Steps to reproduce issue:

  1. Create a Canvas (GameObject>UI>Canvas)

  2. Set Canvas.RenderMode to World Space

  3. Set the Canvas's Rect Transform width & Height to appropriate world space values (2 x 1 meter)

  4. Add a Text Object to the Canvas (GameObject>UI>Text)

  5. Adjust Text size and pos to fit wit$$anonymous$$n the canvas (Pos: 0,0,0 width:2 Height: 1)

  6. Set the Canvas Scaler's Dynamic Pixel Unit to a reasonable value to see the font (3000)

The Text should appear on screen, but no longer respond to adjustments to font size.

Comment
Add comment · Show 2
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 tossrock · Mar 29, 2018 at 10:23 PM 0
Share

I am having this problem too. Very annoying.

avatar image Splendidus · Apr 15, 2018 at 10:18 AM 1
Share

I have the same problem. The higher you raise DPPU, the smaller the maximum font size you can set. I used scale of transform and low DPPU.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by QuantumCookies · Apr 15, 2018 at 05:34 PM

The way I fixed t$$anonymous$$s issue was adjust the dynamic pixel reference up and down to change the size of the text.

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 OUTERDARKNESS · Apr 15, 2018 at 06:18 PM 0
Share

Do you think it Unity's intent to only allow one font size per canvas?

avatar image
0

Answer by apantev · Oct 08, 2018 at 02:12 AM

"The $$anonymous$$gher you raise DPPU, the smaller the maximum font size you can set. I used scale of transform and low DPPU." - @Splendidus

The above comment had the answer I was looking for.

So for me I set Dynamic Pixel Per Unit to 1 and set my X and Y scale to 0.01

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 OUTERDARKNESS · Oct 08, 2018 at 05:27 PM 0
Share

So you are saying you are scaling every text element to change the appearance of it's font size?

Wouldn't this also require you to change the bounds of the rect transform to make it fit the new scale.

Wouldn't this also affect the aliasing of the text edge, by over or under sampling the scaled text?

Wouldn't this make adjustments to several existing text elements extremely painful?

Do you believe this wonky behavior is Unity's intended solution for dealing with text in a world-space UI? If so, why not mention it in the documentation?

I think it's much more likely that DPPU component is broken when used with world-space canvas.

Since starting this thread, I have stopped using DPPU completely. I design a canvas at a scale of one-pixel-per-meter, then scale it down to fit world-scale. I keep all my Text at scale 1, and use 'font size' to adjust the text size. I believe this to be the proper solution until Unity fixes DPPU.

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

79 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

Related Questions

How can I set the UI Text font size higher than 300px ? | Unity 5.4 2 Answers

How to change the size of a GUI text (in a script)? 2 Answers

Changing Font Size of GUI Text With Code? 1 Answer

Dynamic Font Size in mobile devices? 0 Answers

How to build a bestfit font size for a group of UI Text 3 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