Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Field in DialogueCharacterNameView
Invoked when a line is received that doesn't contain a character name.
Games can use this event to hide the name UI.
DialogueCharacterNameView.onNameUpdate: Invoked when a line is received that contains a character name. The name is given as the parameter.
Field in DialogueCharacterNameView
Invoked when a line is received that contains a character name. The name is given as the parameter.
DialogueCharacterNameView.onNameNotPresent: Invoked when a line is received that doesn't contain a character name.
Method in DialogueCharacterNameView
Called by the DialogueRunner to signal that the dialogue has ended, and no more lines will be delivered.
This method is called after the last piece of content (that is, lines, options or commands) finished running.
This method is a good place to perform tasks like dismissing on-screen dialogue UI (for example, turning off a letterboxing effect, or hiding dialogue UI elements.)
The default implementation of this method does nothing.
A task that represents any work done by this dialogue view in order to clean up after running dialogue.
Class in Yarn.Unity
Inherits from AsyncDialogueViewBase
A subclass of DialogueViewBase that displays character names.
This class uses the `character` attribute on lines that it receives to determine its content. When the view's RunLineAsync(LocalizedLine,LineCancellationToken) method is called with a line whose Text contains a `character` attribute, the onNameUpdate event is fired. If the line does not contain such an attribute, the onNameNotPresent event is fired instead.
This view does not present any options or handle commands. It's intended to be used alongside other subclasses of AsyncDialogueViewBase.
Invoked when the dialogue is started.
Invoked when a line is received that doesn't contain a character name.
Invoked when a line is received that contains a character name. The name is given as the parameter.
Takes no action; this dialogue view does not handle options.
Called by the to signal that the dialogue has ended, and no more lines will be delivered.
Called by the to signal that dialogue has started.
Invokes the or events, depending on the contents of line
.
Method in DialogueCharacterNameView
Takes no action; this dialogue view does not handle options.
line
The line to present.
token
A that represents whether the dialogue view should hurry it its presentation of the line, or stop showing the current line.
dialogueOptions
CancellationToken
cancellationToken
A task that completes when the dialogue view has finished showing the line to the user.
Method in DialogueCharacterNameView
Called by the DialogueRunner to signal that dialogue has started.
This method is called before any content (that is, lines, options or commands) are delivered.
This method is a good place to perform tasks like preparing on-screen dialogue UI (for example, turning on a letterboxing effect, or making dialogue UI elements visible.)
The default implementation of this method does nothing.
A task that represents any work done by this dialogue view in order to get ready for dialogue to run.
Method in DialogueCharacterNameView
Invokes the onNameUpdate or onNameNotPresent events, depending on the contents of line
.
line
The line to present.
token
A that represents whether the dialogue view should hurry it its presentation of the line, or stop showing the current line.
A task that completes when the dialogue view has finished showing the line to the user.