Upgraded to 5.2f1 and all UI text in the game is now solid black. Even creating a new UI Text and trying to change its color leaves it rendering as black.
Downloading f2 right now to see if it’s already fixed, but is anybody else experiencing this?
This is in the editor, haven’t built to device yet, on Mac OS X, with target platform set to Android.
OK, I finally got f2 installed and I still had this black text issue in my project.
So I created a new project to submit a bug report with as a minimum repro case, but in a brand new project with f2 I do not have this problem - I can change text colors again.
So now it looks like simply having my project in that f1 build has broken something. How can I force my existing project to behave nicely like a new f2 project does and forget the evil that was visited upon it by f1? Reimport all assets? Delete the Library folder? I’ll try a few things…
According to the upgrade guide that is linked in the release notes section here: Unity Editor Beta Releases
UI
In 5.2 we have combined the shaders that text and normal UI element rendering users… A side effect of this is that if you specify a manual font texture in a 32bit format then the color channels will be honored. This means that black texture channels will result in black text where previously the text would be white (we only looked at the alpha). If you wish to use custom textures for your fonts do one of the following:
Change the import format of the texture to A8. This will only keep the alpha component and Unity will generate the text as white by default.
Specify a color / colors in the texture for Unity to use when rendering the text
Nothing seems to help. This project always show all UI text in black. Filed a bug with the complete project as case #721884.
@ScottyB , all of the texture settings look completely normal. None of these text objects where white before upgrading to F1. That’s when they turned black (without changing any of their font or texture settings). Now, after upgrading to F2, they are still all black, no matter what I select for their color. I’ve reimported all assets, etc. No luck.
Manually assigning a new material to all UI Text’s solves the problem. It’s just a default material with the UI/Text shader on it. I don’t know why this is necessary - apparently the default material you get when having nothing assigned is what’s broken?