Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 glitch452 · Dec 11, 2015 at 01:54 PM · uitextcolorfont

Text Changes to Black

Hi there. I've been facing an issue for the past couple hours that I cannot figure out. When I run my game all of my Text objects that are not a special font, such as the defualt Ariel or Comic sans, change to black and will not change back when I try setting the color in the editor. The text will remain black until I save the scene, at which point they snap back to their proper color.

Something interesting that I noticed however is that If is slowly scale up the font size the text will change to light blue. Even though this is not the intended color. I tried making a simple helper script to attach to auto set colors and font sizes, that did nothing.

I have no idea whats happening or which direction to approach this from. Please Help.

Comment
Add comment · Show 6
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 MatthewHarmon · Dec 18, 2015 at 10:18 AM 0
Share

I have the same problem... any solution yet?

avatar image glitch452 MatthewHarmon · Dec 18, 2015 at 03:16 PM 0
Share

No, not yet. But I have found that this doesn't occur in builds, only when running the game in the editor.

avatar image laharl219 · Dec 18, 2015 at 10:49 AM 0
Share

did you add your text via GUI object or via script?

avatar image glitch452 laharl219 · Dec 18, 2015 at 03:20 PM 0
Share

They are added to the Canvas as UI Text objects.

avatar image davidrochin · May 05, 2019 at 12:03 AM 0
Share

It's so weird that this issue still persists to this day

avatar image AlirezaSH2004 · May 20, 2020 at 03:07 AM 0
Share

Hello there. This problem occurs when an error happens in the game. Any single error at start or awake can cause this problem. Do you get any errors when you play the game?

7 Replies

· Add your reply
  • Sort: 
avatar image
8

Answer by Kiragan · Aug 27, 2019 at 10:24 PM

  1. Disable camera ( just untick it )

  2. Enable camera

  3. CTRL+S / COMMAND+S

Color will be back to yours. But only until your next action with UI in editor. Usualy this solution helps before you want test play.

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
2

Answer by ToruTheRedFox · May 17, 2020 at 01:22 PM

I find that reimporting the fonts fixes the issue for me

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
-1

Answer by amir_sigma · Jan 13, 2020 at 10:38 AM

Just generate the lights again

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 LilGames · Jan 13, 2020 at 03:00 PM 0
Share

Has nothing to do with lighting, as this happened in fully 2D games too.

avatar image
0

Answer by LilGames · Apr 27, 2017 at 01:19 PM

Assign a Material to the Text component. You'll see your color come back. (It still does this in 5.5... don't know why. It will be fine without a material, and then poof! The text turns black and the only fix is assigning a material).

Comment
Add comment · Show 4 · 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 matinzen01 · Jun 05, 2019 at 03:06 PM 0
Share

I just created a $$anonymous$$aterials Folder after i read your post and poof! The color on the text came back. I didn't do anything else. :)

avatar image Develax · Jun 17, 2019 at 03:57 PM 0
Share

Hello from 2019! The bug is still there :(

avatar image Kizmiaz · Jul 02, 2019 at 04:11 PM 0
Share

It is not a bug, you have to exclude UI from Culling $$anonymous$$ask at Directional Light attached to your scene.. That helped me and hope it will help you..

avatar image lukaodzelashvili Kizmiaz · Sep 09, 2020 at 12:02 PM 0
Share

its still black

avatar image
0

Answer by roointan · Jan 20, 2020 at 02:02 PM

Getting help from Kizmiaz's comment, I tried unticking Occlusion Culling on the main camera, and it's resolved.

Comment
Add comment · Show 2 · 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 LilGames · Jan 20, 2020 at 02:22 PM 0
Share

But now you don't have occlusion culling!

avatar image roointan LilGames · Jan 20, 2020 at 02:26 PM 0
Share

Just enable it, and the problem will not be back :)

  • 1
  • 2
  • ›

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

19 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

Related Questions

Replacing transparency of text with a solid color? 1 Answer

Text Appearance Glitch in Unity UI, 5.3 0 Answers

How to measure the width of a string? 0 Answers

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

Pixel Font is Blurry 4 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