LinePresenter

Class in Yarn.Unity

Inherits from DialoguePresenterBase

Summary

A Dialogue Presenter that presents lines of dialogue, using Unity UI elements.

public sealed class LinePresenter : DialoguePresenterBase

Fields

Name
Description

Controls whether this Line View will automatically to the Dialogue Runner that the line is complete as soon as the line has finished appearing.

The amount of time after the line finishes appearing before automatically ending the line, in seconds.

The canvas group that contains the UI elements used by this Line View.

The game object that holds the characterNameText text field.

The TMPro.TMP_Text object that displays the character names found in dialogue lines.

The time that the fade effect will take to fade lines out.

The time that the fade effect will take to fade lines in.

The number of characters per second that should appear during a typewriter effect.

The TMPro.TMP_Text object that displays the text of dialogue lines.

Controls whether the lineText object will show the character name present in the line or not.

Controls whether the line view should fade in when lines appear, and fade out when lines disappear.

Methods

Name
Description

Called by the DialogueRunner to signal that the dialogue has ended, and no more lines will be delivered.

Called by the DialogueRunner to signal that dialogue has started.

Presents a line using the configured text view.

Last updated

Was this helpful?