LineView
Class in Yarn.Unity
Inherits from DialogueViewBase
This class is obsolete and may be removed from a future version of Yarn Spinner.
Summary
A Dialogue View that presents lines of dialogue, using Unity UI elements.
Fields
Controls whether this Line View will wait for user input before indicating that it has finished presenting a line.
The canvas group that contains the UI elements used by this Line View.
The gameobject that holds the characterNameText textfield.
The TMPro.TextMeshProUGUI
object that displays the character names found in dialogue lines.
The game object that represents an on-screen button that the user can click to continue to the next piece of dialogue.
The time that the fade effect will take to fade lines in.
The time that the fade effect will take to fade lines out.
The amount of time to wait after any line
The TMPro.TextMeshProUGUI
object that displays the text of dialogue lines.
A Unity Event that is called each time a character is revealed during a typewriter effect.
A Unity Event that is called when a pause inside of the typewriter effect finishes and the typewriter has started once again.
A Unity Event that is called when a pause inside of the typewriter effect occurs.
Controls whether the lineText object will show the character name present in the line or not.
The number of characters per second that should appear during a typewriter effect.
Controls whether the line view should fade in when lines appear, and fade out when lines disappear.
Controls whether the text of lineText should be gradually revealed over time.
Methods
Inserts TextMeshPro line break markup in a line where Yarn line break attributes appear.
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 the view should dismiss its current line from display, and clean up.
Called by the DialogueRunner to signal that a line has been interrupted, and that the Dialogue View should finish presenting its line as quickly as possible.
Called when the continueButton is clicked.
Applies the palette
to the line based on it's markup.
Called by the DialogueRunner to signal that a line should be displayed to the user.
Called by DialogueAdvanceInput to signal that the user has requested that the dialogue advance.
Last updated