TypewriterHandler

Class in Yarn.Unity

Inherits from TemporalMarkupHandler

Summary

A TemporalMarkupHandler that progressively reveals the text of a line at a fixed rate of time.

public sealed class TypewriterHandler : TemporalMarkupHandler

Fields

Name
Description

The number of letters that will be shown per second.

An event that will be invoked for each

Methods

Name
Description

Stops the internal time counter, and finishes displaying the line.

Calculates the points in the typewriter should pause at, and starts the typewriter's internal time counter.

Resets the typewriter back to the initial state.

Presents a single character of the line, at the appropriate point in time.

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.