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);
}