Hi. I am using GUIText to store and render a simple timer. I am setting the content thus:
guiText.text = “Timer:” + Global.timer;
However when Global.timer is decremented the view on the screen doesn’t auto-update. The view is updated using GUI.Label (below). However I have opted for using GUIText for ease of font manipulation. I could stay with Label but for being able to assign a font (.ttf asset import) to it, in a Javascript.
I can manually update the GUIText content of course using the above but that screws with the font i.e. the global score variable doesn’t seem to be the same font as “Timer”. Any ideas how to solve either please?
Thanks
G.
GUI.Label (Rect (300, 25, 100, 30), "Timer: " + Global.timer);