Hey everyone, I seem to be having trouble understanding GUIText correctly. Mainly what seems to be the problem is that if I have a GUIText positioned and scaled correctly in the game preview window it gets scaled down a lot if I hit maximize on play. I’m just not sure why it looks so differently between the two screens. A simple explanation of GUIText would be so helpful. Thanks in advance.
1 Answer
1Basically, the higher the resolution, the smaller the font will appear because it is drawn to size in pixels.
To get around this, you can either dynamically re-size the GUIText (Set font size to a factor of the resolution (Screen.width, Screen.height) OR you can allow the user to re-size the text to their liking (much like a website with usability options).
Note that either of these will require that the Font be a dynamic font.
Thanks, that's very informative. I'm just confused as to what factor of the screen I should get.
– AnthonylinxI just found out that size ~200 in my custom font is equal to ~20 in arial and that was causing a ton of my confusion on this. Thanks so much for your help, you're awesome!
– Anthonylinx