GetPauseDurationsInsideLine(Markup.MarkupParseResult)

Method in LineView

Summary

Creates a stack of typewriter pauses to use to temporarily halt the typewriter effect.

public static Stack<(int position, float duration)> GetPauseDurationsInsideLine(Markup.MarkupParseResult line)

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

NameDescription

The line from which we covet the pauses

Returns

A stack of positions and duration pause tuples from within the line

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.