GetPauseDurationsInsideLine(Markup.MarkupParseResult)
Method in LineView
Summary
Creates a stack of typewriter pauses to use to temporarily halt the typewriter effect.
Remarks
This is intended to be used in conjunction with the PausableTypewriter(TextMeshProUGUI,float,Action,Action,Action,Stack<(int position, float duration)>,CoroutineInterruptToken) effect. The stack of tuples created are how the typewriter effect knows when, and for how long, to halt the effect.
The pause duration property is in milliseconds but all the effects code assumes seconds So here we will be dividing it by 1000 to make sure they interconnect correctly.
Parameters
Name | Description |
---|---|
The line from which we covet the pauses |
Returns
A stack of positions and duration pause tuples from within the line
Last updated