- Home /
This question was
closed Dec 03, 2014 at 03:15 PM by
unimechanic for the following reason:
Duplicate Question
Trying to convert AutoType GUI Text script to Text mesh (3D text)
(Sorry, maybe my English isn´t perfect)
Hi, I use the AutoType script, but I want to use it for TextMesh, not for GUI Text.
This is the result:
var currentPosition : int = 0;
var Delay : float = 0.1; // 10 characters per sec.
var Text : String = "";
var additionalLines : String[];
function WriteText(aText : String) {
TextMesh.text = "";
currentPosition = 0;
Text = aText;
}
function Start(){
for ( var S : String in additionalLines )
Text += "\n" + S;
while (true){
if (currentPosition < Text.Length)
TextMesh.text += Text[currentPosition++];
yield WaitForSeconds (Delay);
}
}
But I get these two errors:
Can you explain what´s wrong?
Thanks in advance.
Comment
Follow this Question
Related Questions
Trigger the dialogue system 1 Answer
Why is my TextMeshPro like this? 1 Answer
How can I use my own images as a GUIText or Text Mesh font? 1 Answer
GUILabel to GUIText or Textmesh 0 Answers
"guiText" equivalent for TextMesh 1 Answer