For the complete documentation index, see llms.txt. This page is also available as Markdown.

GetLocalizedLineAsync(Line,CancellationToken)

Method in ILineProvider

Summary

Prepares and returns a LocalizedLine from the specified Line .

public YarnTask<LocalizedLine> GetLocalizedLineAsync(Line line, CancellationToken cancellationToken);

Parameters

Name
Description

The Line to produce the LocalizedLine from.

CancellationToken cancellationToken

A cancellation token that indicates whether the process of fetching the localised version of line should be cancelled.

Returns

A localized line, ready to be presented to the player.

Last updated

Was this helpful?