Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Field in VoiceOverView
The UnityEngine.AudioSource
that this voice over view will play its audio from.
If this is null
, a new UnityEngine.AudioSource
will be added at runtime.
Class in
Inherits from
A subclass of that plays voice-over UnityEngine.AudioClip
s for lines of dialogue.
This class plays audio clip assets that are provided by an . To use a in your game, your must be configured to use an , and your Yarn projects must be configured to use voice-over audio assets. For more information, see .
Name | Description |
---|
Name | Description |
---|
: A UnityEngine.MonoBehaviour
that can present lines and options to the user, when it receives them from a .
Method in VoiceOverView
Signals to this dialogue view that the user would like to skip playback.
When this method is called, this view indicates to its DialogueRunner that the line should be interrupted.
If this view is not currently playing any audio, this method does nothing.
DialogueViewBase.InterruptLine(LocalizedLine,Action): 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.
The |
The amount of time after playback has completed before this view reports that it's finished delivering the line. |
The amount of time to wait before starting playback of the line. |
Ends any existing playback, and reports that the line has finished dismissing. |
Interrupts the playback of the specified line, and quickly fades the playback to silent. |
Begins playing the associated audio for the specified line. |
Signals to this dialogue view that the user would like to skip playback. |
Method in VoiceOverView
Ends any existing playback, and reports that the line has finished dismissing.
This method is not intended to be called from your code. Instead, the DialogueRunner class will call it at the appropriate time.
Name | Description |
---|---|
DialogueViewBase.DismissLine(Action): Called by the DialogueRunner to signal that the view should dismiss its current line from display, and clean up.
Method in VoiceOverView
Interrupts the playback of the specified line, and quickly fades the playback to silent.
This method is not intended to be called from your code. Instead, the DialogueRunner class will call it at the appropriate time.
Name | Description |
---|---|
DialogueViewBase.InterruptLine(LocalizedLine,Action): 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.
The fade out time when is called.
Called by the to signal that the dialogue has ended, and no more lines will be delivered.
System.Action
onDismissalComplete
The method that should be called when the view has finished dismissing the line.
Yarn.Unity.LocalizedLine dialogueLine
The current line that is being presented.
System.Action
onDialogueLineFinished
The method that should be called after the line has finished being presented.
Method in VoiceOverView
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.)
If Stop() is called, this method is how your custom views are informed of this. This allows you to skip over the normal flow of dialogue, so please use this method to clean up your views.
The default implementation of this method does nothing.
Field in VoiceOverView
The amount of time after playback has completed before this view reports that it's finished delivering the line.
Method in VoiceOverView
Begins playing the associated audio for the specified line.
This method is not intended to be called from your code. Instead, the DialogueRunner class will call it at the appropriate time.
Name | Description |
---|---|
DialogueViewBase.RunLine(LocalizedLine,Action): Called by the DialogueRunner to signal that a line should be displayed to the user.
Yarn.Unity.LocalizedLine dialogueLine
The content of the line that should be presented to the user.
System.Action
onDialogueLineFinished
The method that should be called after the line has finished being presented.