Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Joyzh

Pages: [1]
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

Pages: [1]