1
NGUI 3 Support / (3.8.0)TypewriterEffect Bug: fast disable-enable lead to text truncation
« on: October 22, 2015, 03:05:49 AM »
Fast disable-enable the gameobject while typewriter is working, it will replay the effect from the beginning, but the text is truncated.
It is more likely to reappear on long text.
- void Update ()
- {
- if (!mActive) return;
- if (mReset)
- {
- mCurrentOffset = 0;
- mReset = false;
- mLabel = GetComponent<UILabel>();
- mFullText = mLabel.processedText; //mLabel.processedText isn't full text during playing
- mFade.Clear();
- if (keepFullDimensions && scrollView != null) scrollView.UpdatePosition();
- }
- ...........
- }