VoiceOverView

Class in Yarn.Unity

Inherits from AsyncDialogueViewBase

Summary

A subclass of AsyncDialogueViewBase that plays voice-over UnityEngine.AudioClip s for lines of dialogue.

public class VoiceOverView : AsyncDialogueViewBase

Fields

Name
Description

The UnityEngine.AudioSource that this voice over view will play its audio from.

The dialogue runner to notify of line completion.

If true , the voice over view will request that the dialogue runner proceed to the next line when audio for the line has finished playing.

The fade out time when the line is interrupted during playback.

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.

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.

Begins playing the associated audio for the specified line.

Called by the DialogueRunner to signal that a set of options should be displayed to the user.

See Also

  • DialogueViewBase: Implements the Yarn Spinner 2 callback-based API for dialogue views using Yarn Spinner 3.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.