Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity UI Text Turning Black

Tags:

unity3d

I have an extremely annoying problem with Unity (2019.1.3f1) and mac os, where UI text color randomly turns black in editor (and happens when in play mode too) and seems to only get fixed when i save the scene(but only temporarily). These are all standard UI Text (part of an asset actually, is the whole menu system I am using).

I have been seeing other people mentioning it online few years back even, but no definitive solution. Is anyone else having that ? Is there any solution ?

Thanks !

like image 575
Spyros Avatar asked Jan 26 '23 04:01

Spyros


2 Answers

quick fix for black UI text is to disable and then enable canvas into editor then ctlr+s (save)

takes 2 seconds to do

also not a real fix as the text will get back to black on next build

like image 133
Normand Guerin Avatar answered Jan 29 '23 07:01

Normand Guerin


Unfortunately this is a bug within the Unity editor itself, and introduced somehwere in 2019.1.0f2. As far as I am aware cannot be completely fixed by yourself. The only things that seem to temporarily "fix" this issue are doing one of the following things:

  • Save the scene (as you've found)
  • Restart the editor
  • Build the project
  • At occasion starting the scene sometimes fixes it, but really unreliable.

Although not exactly the same problem, bug 1143135 is most likely related to the issue. According to the current state of issue 1143135 that will be fixed in version 2019.1.5f1 and 2019.2.0b4.

For the time being it seems we can only hope that that issue is indeed related. And if not put in another bug report.

like image 38
Remy Avatar answered Jan 29 '23 07:01

Remy