UnityLocalisedLineProvider

Class in Yarn.Unity.UnityLocalization

Inherits from LineProviderBehaviour

Summary

A line provider that uses the Unity Localization system to get localized content for Yarn lines.

public sealed class UnityLocalisedLineProvider : LineProviderBehaviour

Methods

NameDescription
DeregisterMarkerProcessor(string)Removes all marker processors that handle markers named attributeName .
GetLocalizedLineAsync(Line,CancellationToken)Prepares and returns a LocalizedLine from the specified Line .
PrepareForLinesAsync(IEnumerable,CancellationToken)Signals to the line provider that lines with the provided line IDs may be presented shortly.
RegisterMarkerProcessor(string,IAttributeMarkerProcessor)Adds a new marker processor to the line provider.

Properties

NameDescription
LocaleCodeGets the line provider’s current locale identifier, as a BCP-47 code.