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 - Fargrove

Pages: [1]
1
Yes I have it right after the while loop.


         while (NGUIText.ParseSymbol(mFullText, ref mCurrentOffset)) { }
         ++mCurrentOffset;

            if (mCurrentOffset >= mFullText.Length)
            {
                break;
            }




2
The TypewriterEffect is working great for animating dynamic text thank you.  One thing that we came across was that if we had any BBCode characters at the end of a string that we were using the TypewriterEffect to animate we would get an index-out-of-range error.  We fixed this by adding the following if statement to the while (mCurrentOffset < mFullText.Length && mNextChar <= RealTime.time) in the Update() function:

if (mCurrentOffset >= mFullText.Length)
{
      break;
}


Can you please add this fix to the TypewriterEffect.cs in the  next version of NGUI.

Thank you.

3
I am trying to use the NGUI TypewriterEffect on a label that is populated with dynamic text.  Is this possible?  I can only seem to get it to work with a Label whose text is prepolulated.

Thanks in advance.

Pages: [1]