We would like to use a Text Mesh to display a series of words which is highlighted one word at a time.
Any ideas on how this would be done?
My progress so far:
public var textA : String;
textA += "Once upon a time"
;
textA += "there was a little girl.";
function Start() {
var myTextMesh = (GetComponent(TextMesh) as TextMesh);
myTextMesh.text = textA;
renderer.material.SetColor("_Color", Color.red);
}
Thanks!
I appreciate your answer Eric5h5!
We could use it as a fallback technique. However what I was hoping for was for the full text to be on screen and then for each word to highlight as the voice over reads them.
For example all text would be blue and then as each word is read it would become red and then return to its original state.