useTypewriterEffect
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Field in LinePresenter
Controls whether the text of lineText should be gradually revealed over time.
public bool useTypewriterEffect = true;
If this value is true
, the lineText object's TMPro.TMP_Text.maxVisibleCharacters
property will animate from 0
to the length of the text, at a rate of typewriterEffectSpeed letters per second when the line
appears. onCharacterTyped
is called for every new
character that is revealed.
If this value is false
, the lineText will all be revealed at the same time.
LinePresenter.lineText: The TMPro.TMP_Text
object that displays the text of dialogue lines.
onCharacterTyped
LinePresenter.typewriterEffectSpeed: The number of characters per second that should appear during a typewriter effect.