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.
Method in
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 class will call it at the appropriate time.
Name | Description |
---|
: Called by the to signal that the view should dismiss its current line from display, and clean up.
| The method that should be called when the view has finished dismissing the line. |
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
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.
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.
Class in Yarn.Unity
Inherits from DialogueViewBase
A subclass of DialogueViewBase that plays voice-over UnityEngine.AudioClip
s for lines of dialogue.
This class plays audio clip assets that are provided by an AudioLineProvider . To use a VoiceOverView in your game, your DialogueRunner must be configured to use an AudioLineProvider , and your Yarn projects must be configured to use voice-over audio assets. For more information, see Localization and Assets .
Name | Description |
---|---|
Name | Description |
---|---|
DialogueViewBase: A UnityEngine.MonoBehaviour
that can present lines and options to the user, when it receives them from a DialogueRunner .
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.
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.
The UnityEngine.AudioSource
that this voice over view will play its audio from.
The fade out time when UserRequestedViewAdvancement() is called.
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.
Called by the DialogueRunner to signal that the dialogue has ended, and no more lines will be delivered.
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.
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.
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.