RunLineAsync(LocalizedLine,LineCancellationToken)

Method in AsyncDialogueViewBase

Summary

Called by the DialogueRunner to signal that a line should be displayed to the user.

public abstract YarnTask RunLineAsync(LocalizedLine line, LineCancellationToken token);

Remarks

When this method is called, the Dialogue View should present the line to the user. The content to present is contained within the line parameter, which contains information about the line in the user's current locale.

The DialogueRunner will wait until the tasks from all of its dialogue views have completed before continuing to the next piece of content. If your dialogue view does not need to handle the line, it should return immediately.

Parameters

Name
Description

The line to present.

A LineCancellationToken that represents whether the dialogue view should hurry it its presentation of the line, or stop showing the current line.

Returns

A task that completes when the dialogue view has finished showing the line to the user.

See Also

Last updated

Was this helpful?