I do not know how to wrap this codes for the GUIText could any one please show me how? This code make my text typing from left to right but I need it wrapped so I could write more words for my game so please show me how? This code original from wiki.
/////////////////////////////////////////////////////////////////////////////////
var letterPause = 0.2; var sound : AudioClip;
private var word;
function Start() { word = guiText.text; guiText.text = "" ; TypeText (); }
function TypeText () { for (var letter in word.ToCharArray()) {
guiText.text += letter;
if (sound)
AudioSource.PlayClipAtPoint(sound, Camera.main.transform.position, .66);
yield WaitForSeconds (letterPause);
}
}