VoiceOverPresenter.RunLineAsync(LocalizedLine,LineCancellationToken)

Method in VoiceOverPresenter

Summary

Begins playing the associated audio for the specified line.

public override async YarnTask RunLineAsync(LocalizedLine dialogueLine, LineCancellationToken lineCancellationToken)

Remarks

> [!WARNING] > > This method is not intended to be called from > your code. Instead, the DialogueRunner class will call > it at the appropriate time.

Parameters

NameDescription
lineThe line to present.
tokenA LineCancellationToken that represents whether the dialogue presenter should hurry it its presentation of the line, or stop showing the current line.
Yarn.Unity.LocalizedLine dialogueLine
Yarn.Unity.LineCancellationToken lineCancellationToken

See Also