- Home /
Unity 4 Font Colors Not Following HEX Codes?
It seems like fonts in Unity 4 are just defaulting to the nearest 256 color (or random) instead of following the HEX code accurately.
Can anyone confirm this is a bug, or suggest a fix?
Answer by crproject · Nov 30, 2012 at 11:27 AM
Figured out the problem. For some reason it works when we write the alphabet characters in lower case.
Answer by Graham-Dunnett · Nov 29, 2012 at 10:55 AM
Unity uses 8-character hex codes to define the colour and alpha. See:
http://docs.unity3d.com/Documentation/Manual/StyledText.html
Provide an example and screenshot if that does not work for you.
Here is an example of the problem we are having.
We input the hex code 8E5A33, but the color we see in-game shows up as EEFA33
It doesn't seem like an offset but a totally random color.
Any ideas?
Your answer

Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
Changing two different objects renderer colour 1 Answer
8 digit hex not allowed? 1 Answer
Hex colors in unity 3 Answers
Can you tell a camera not to render a certain color? 1 Answer