• 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 /
  • Help Room /
avatar image
0
Question by askull100 · Nov 20, 2015 at 02:22 PM · unity 5uitextscaling

Unity 5.0.2 UI Text - Best Fit isn't working correctly?

So I'm making a menu in Unity that is supposed to support multiple resolutions. My buttons scale, but the text inside them does not.

I've experimented with anchor points, but I've been told that the "Best Fit" option is the best way to go for text scaling. However, while the text does become bigger, it doesn't scale dynamically according to screen size, which is what I want. So if the screen becomes smaller, the text should get smaller with it, which isn't happening.

Anyone know why this is happening? Is Best Fit not what I should be using?

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 oriolmanya · Aug 06, 2016 at 08:33 AM 0
Share

I guess with Unity 5.4 this is happening again, and solution provided below doesn't work. I've reported a Bug.

NOTE: It just happens with "Non Dynamic" Fonts (Option in the Font export), I don't know if has to be this way or not.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Phedg1 · Feb 17, 2016 at 12:24 PM

If you put the anchors (white triangles) into the corners of your text object, then the text container will resize dynamically with the screen. This, in combination with best fit, will create the effect you described.

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.

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

52 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

Related Questions

Unity 5 - Does anyone know how to scale the text in the UI? 1 Answer

Text is Distorted : Android 1 Answer

[SOLVED]My UI text don't update from script 3 Answers

UI Text: Words at end of line jumping to next line 0 Answers

Wrapping and continuing Text across multiple Text UI elements in Unity 5.5 0 Answers

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