Author Topic: (3.8.0)TypewriterEffect Bug: fast disable-enable lead to text truncation  (Read 1291 times)

qiminixi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Fast disable-enable the gameobject while typewriter is working, it will replay the effect from the beginning, but the text is truncated.
  1. void Update ()
  2. {
  3.         if (!mActive) return;
  4.  
  5.         if (mReset)
  6.         {
  7.                 mCurrentOffset = 0;
  8.                 mReset = false;
  9.                 mLabel = GetComponent<UILabel>();
  10.                 mFullText = mLabel.processedText;            //mLabel.processedText isn't full text during playing
  11.                 mFade.Clear();
  12.  
  13.                 if (keepFullDimensions && scrollView != null) scrollView.UpdatePosition();
  14.         }
  15.         ...........
  16. }
  17.  
It is more likely to reappear on long text.