GUI.Label Color won't change

Hello, I’m trying to get an UI element to change the font colour after making it change font size, here is my code below, what could I be doing wrong for it not to change?

private GUIStyle guiStyle = new GUIStyle();

public void OnGUI()
    {
        GUI.contentColor = Color.white;
        guiStyle.fontSize = 30;
        GUI.Label (new Rect (620, 200, 400, 100), attempts.ToString(), guiStyle);
    }
1 Like

Try [guiStyle.normal.textColor](https://docs.unity3d.com/ScriptReference/GUIStyleState-textColor.html) = Color.white, instead of setting GUI.contentColor.