TemporalMarkupHandler

Class in Yarn.Unity

Inherits from UnityEngine.MonoBehaviour

Summary

A TemporalMarkupHandler is an object that reacts to the delivery of a line of dialogue, and can optionally control the timing of that delivery.

public abstract class TemporalMarkupHandler : MonoBehaviour

Remarks

There are a number of cases where a line's delivery needs to have its timing controlled. For example, TypewriterHandler adds a small delay between each character, creating a 'typewriter' effect as each letter appears over time.

Another example of a TemporalMarkupHandler is an in-line event or animation, such as causing a character to play an animation (and waiting for that animation to complete before displaying the rest of the line).

Methods

Name
Description

Called immediately before the first character in the line is presented.

Called when the line view receives the line, to prepare for showing the line.

Called repeatedly for each visible character in 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.