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 mawak93 · Dec 14, 2014 at 12:18 PM · uibuttontextresizingmaking

I need to resize my text to button to be visible using Unity 4.6 UI

Hi guys....ok so the thing is that whenever i scale my button to a small size the text shrinks which makes the text somewhat hard to read....i want to resize my buttons to a smaller size but want to make the text still readable.....is there a way to move the interaction/interactable property from the text of the button so that i may resize the text without worrying about the click out of the button bounds.alt text

As you can see the second pic is good....but whenever i resize it the text resizes.....in short i want the same text size on the other button aswell since i want many many buttons and its for an android phone .

Thank you :)

alt text

sadasdasdasdasd.png (4.2 kB)
neweaw.png (5.0 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
0

Answer by Mmmpies · Dec 14, 2014 at 01:01 PM

I guess that's an image you're using and not text because text wouldn't scale.

Try re-sizing the button then adding the text image and tick preserve aspect ratio. If the image has a lot of empty space at the edges try cutting it down with an image editor so the text in the image fills almost all the image.

hope that helps.

EDIT:

Sorry I went out so only just got this. What are the settings in the Text component of your Button?

This is the Text component for a button I just placed on my Canvas. If I scale the button to be thinner the Text stays the same size if I make it really thin then all I can see is the B but it's still the same size.

I wonder if it treats different font types differently.

alt text


buttontext.png (20.0 kB)
Comment
Add comment · Show 3 · 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 mawak93 · Dec 14, 2014 at 02:18 PM 0
Share

no thats a text basically i converted it online .... its a text not an image... thank you but if you have anything related on how resize the text in the button i would love to hear that

thank you :)

avatar image spiceboy9994 · Dec 15, 2014 at 06:45 PM 0
Share

What if you check the "Best Fit" checkbox?. Have you tried that?

avatar image mawak93 · Dec 16, 2014 at 12:57 AM 0
Share

Thank you guys but still i havent figured how to resize it properly :(

avatar image
0

Answer by Kiwasi · Dec 16, 2014 at 01:44 AM

whenever i scale my button

There is your problem. UI elements are not meant to be scaled. Rather you should adjust the size of the RectTransform.

(Note: It does make sense to scale world space canvases. But this should be done once, and evenly on the canvas. Everything else should be by 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
avatar image
0

Answer by UNZoOM · Mar 19, 2015 at 10:55 PM

Once you scale the button to the desired size. You can then scale the Text ( i.e "Scale the Rect Transform property" under inspector of the selected text ) size to a clearly visible size.

Original(Default) Size alt text

Smaller Size alt text


11capture.jpg (9.8 kB)
12capture.jpg (9.0 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

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How To Change Color Of Text On UI When It's Selected | Unity 4.6 3 Answers

How to detect button presses and change child object text in the button's Parent Object script 0 Answers

Canvas Button persistence 0 Answers

Why isn't the text preferred size calculating correctly? 0 Answers

[4.6 - UI] Change text on button click via script 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