Dynamic GUI text for Android?

hi guys,

im having difficulty working out how to display gui text on my android device. it works on pc but wont show on my phone

i feel that ive tried everything but cant work it out.

var debugText :String; 

function Start () {
debugText = "hello";
}

function OnGUI () {
	GUI.Label (Rect (200, 10, 200, 400), debugText.ToString()); 
}

any ideas?

haha, never mind, that did work :stuck_out_tongue:

What kind of error you are getting?
It should work.

Himmm.
DebugText is already a string.
You should not use DebugText.ToString(). You should use DebugText directly.

thanks turkert, im using the code for android stuff, the default debug.log doesnt work on it… would you know of another way?