All pages
Powered by GitBook
1 of 1

Loading...

GetLocalizedLineAsync(Line,CancellationToken)

Method in LineProviderBehaviour

Summary

Prepares and returns a LocalizedLine from the specified Line .

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

Parameters

Name
Description

line

The to produce the from.

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

CancellationToken cancellationToken

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

Returns

Yarn.Line
Line
LocalizedLine