Hi all,
I only just managed to get most of my game to correctly scale on different Android devices. GameObjects and such scale fine, but GUI.Labels fail to shrink in size along with them, making them clutter much more of the screen than they need to.
The POSITION of the text is fine. It’s just the text size that won’t adjust.
Here is a sample of my code:
void OnGUI()
{
GUIStyle myStyle = new GUIStyle();
myStyle.font = myFont;
myStyle.fontSize = 40;
myStyle.normal.textColor = Color.white;
myStyle.alignment = TextAnchor.UpperLeft;
GUI.Label (new Rect (10, textYPos, 500, 20), "TIME : " +
timer.ToString("F2"), myStyle);
}
Anyone have a solution?