• 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
1
Question by YeeLuke · Apr 01, 2015 at 03:41 AM · uitextcolortransparencyfont

Replacing transparency of text with a solid color?

Hi, is there an easy fix to filling in a text's transparency? I've been messing around with my UI text for a bit and I can't seem to replace the transparency with a solid color.

(In case I wasn't clear enough:) Whenever I change the font type (in this case mine is a custom imported font), and type something out in it, the letters are transparent with a color outline and the interior of the font is transparent. I'm trying to see if I can replace the transparency with a solid color.

If anyone has a solution, help would be greatly appreciated.

Thanks!

Comment
Add comment · Show 4
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 Alieos · Apr 01, 2015 at 04:52 AM 0
Share

What type of font are you using? Is it by default a solid or an outline font? Also, could you post a screenshot of your problem?

avatar image YeeLuke · Apr 01, 2015 at 01:53 PM 0
Share

It's an outline font, is there a way to make it solid?

avatar image Alieos · Apr 01, 2015 at 05:50 PM 0
Share

You would have to search for a solid version of the font you're using. $$anonymous$$ost font sites should give you a preview of the font before you download. So just make sure it's a solid font. Or do what LSPressWorks suggested.

avatar image Huacanacha · Apr 01, 2015 at 06:04 PM 0
Share

Can't you just make the background image for the Text object whatever solid color you want?

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by LSPressWorks · Apr 01, 2015 at 02:24 PM

The easiest and best way would be to alter the font itself. IT would use MUCH less overhead than other methods.

https://www.google.com/?gws_rd=ssl#safe=off&q=free+font+editor

At least in VB, which is the last time I did this, raster the text(turn into an image), locate the inside pixels and fill them with a color matching the outline.

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

21 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

Related Questions

Text Changes to Black 7 Answers

FPS problem with Multi-Colored text on Unity 5 uGUI via Rich Text 0 Answers

Pixel Font is Blurry 4 Answers

Trying to make Fonts Fallbacks to real Bold/Italic font data 3 Answers

How to know if your Text element will create a new line? 1 Answer

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