Hi
I have created a GUI Skin for use with my app, Everything looks peachy in the Unity Editor when I run but when I export to the web player, any label or button will have the spaces removed from the text e.g.
void OnGUI() {
GUI.skin = MySkin;
GUI.Label(new Rect (20, 0,220,40), new GUIContent("This is a test"));
if (GUI.Button(new Rect (20, 40,220,40), new GUIContent("Day or Night", btnTexture)))
toggleNight();
}
Will show a label as “Thisisatest”
then my button with icon and the text “DayorNight”
I selected “Arial” as the default font, and using Bold with a size of 16.
Unity version 3.5, Export to Webplayer.
I have also made sure that the Rect is big enough.
There are no errors or warnings in the Unity Editor.
Any ideas what I’m doing wrong?
Thanks
Geoff