1
NGUI 3 Support / TypewriterEffect problem
« on: June 18, 2015, 09:20:47 AM »
public void ShowDownMessage(string txt){
label.text = txt;
label.GetComponent<TypewriterEffect>().ResetToBeginning();
}
//not show correctly
IEnumerator Start () {
ShowDownMessage("");
yield return new WaitForSeconds(3);
ShowDownMessage("abc");
}
//show correctly
IEnumerator Start () {
ShowDownMessage("123");
yield return new WaitForSeconds(3);
ShowDownMessage("abc");
}
It's weird that I can not clear label by set empty text on a TypewriterEffect label.
Can anyone help me solve this problem?
NGUI 3.9.0b
label.text = txt;
label.GetComponent<TypewriterEffect>().ResetToBeginning();
}
//not show correctly
IEnumerator Start () {
ShowDownMessage("");
yield return new WaitForSeconds(3);
ShowDownMessage("abc");
}
//show correctly
IEnumerator Start () {
ShowDownMessage("123");
yield return new WaitForSeconds(3);
ShowDownMessage("abc");
}
It's weird that I can not clear label by set empty text on a TypewriterEffect label.
Can anyone help me solve this problem?
NGUI 3.9.0b
