Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Rush3fan · Dec 22, 2012 at 07:47 PM · guitextpixel

How do I scale GUI Text but while keeping it "pixel correct"?

I basically want to be able to do a scale animation on some text, but I need it to act like I checked the "pixel correct" box. Does anyone know the formula behind "pixel correct" or how it factors specifically into scale?

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 chuchushoe · Jul 21, 2013 at 06:30 AM

Try this! In the import settings of the font, make the size very large like 100. Then you can uncheck the pixelcorrect without losing the text quality too much!

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 aman_jha · Jul 09, 2014 at 01:24 PM 0
Share

Ok yeah so this actually works, so why isn't it being accepted?

avatar image
0

Answer by felixwcf85 · Mar 06, 2013 at 08:56 AM

I have the same problem too... This question is still left unanswered? I thought it was an esay one for pro?? Anyone please help?

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 Rush3fan · Mar 11, 2013 at 10:41 AM 0
Share

What I ended up doing was not using the pixel correct option. I never needed it anyway, but I think there's enough flexibility to where you could make your own "pixel correct". If you do try your own version, don't forget to convert Screen.width/height to floats before doing any math operations. It took me a while to realize they were ints on my latest project.

avatar image
0

Answer by robertbu · Mar 06, 2013 at 04:44 PM

GUIText uses a bitmap to display the font. When you import a font into Unity, you specify a font size. It generates a bitmap of that font at the specified size. "Pixel Correct" means that the images are not stretched in any way...there is one pixel on the screen for every pixel in the original font. So you cannot scale a GUIText and still have it pixel correct.

I don't use GUIText. I use the text system inside EZGUI, but the method used is similar. Through some experiments, I found in EZGUI the font can be scaled down some without losing much quality. Scaling up the quality degraded in a hurry. Do your own experiment with GUIText. Import your font in a variety of sizes and then scale the font up and down at runtime. I found it beneficial to have it on two of the same devices at the same time so I could compare scaled and not scaled text of a similar size.

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

11 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

Related Questions

How can I add "..." to GUI.Label if it goes past its bounds? 1 Answer

Checking 2 string variables 0 Answers

How to make text that scrolls horizontally? 2 Answers

Story Text to GUI Boxes 0 Answers

Trying to make an ASCII UI based game 0 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