Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Meltdown on October 17, 2014, 08:23:37 PM
Title:
Full stop at end of label is not shown when using TypeWriterEffect
Post by:
Meltdown
on
October 17, 2014, 08:23:37 PM
I've just downloaded 3.7.4.
I have added the TypeWriterEffect to a label.
When I write the following code, for some reason if I have a . at the end of a sentence, it never gets shown..
_bottomDialogText
.
GetComponent
<
TypewriterEffect
>
(
)
.
ResetToBeginning
(
)
;
_bottomDialogText
.
text
=
"Whats up doc."
;
Just shows
Quote
Whats up doc
EDIT : It seems to be other characters too, even a ! at the end of a sentence.
Title:
Re: Full stop at end of label is not shown when using TypeWriterEffect
Post by:
ArenMook
on
October 18, 2014, 08:56:47 AM
First change the text, then call ResetToBeginning().
Title:
Re: Full stop at end of label is not shown when using TypeWriterEffect
Post by:
Meltdown
on
October 18, 2014, 06:16:19 PM
That doesn't make any difference :-[
Title:
Re: Full stop at end of label is not shown when using TypeWriterEffect
Post by:
ArenMook
on
October 19, 2014, 11:11:50 AM
You're right, small bug there.
Change line 151 of TypewriterEffect.cs from:
if
(
mCurrentOffset
>=
mFullText
.
Length
)
break
;
to:
if
(
mCurrentOffset
>
mFullText
.
Length
)
break
;