Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in UnityLocalisedLineProvider
Signals to the line provider that lines with the provided line IDs may be presented shortly.
This method allows implementing classes a chance to prepare any neccessary resources needed to present these lines, like pre-loading voice-over audio. The default implementation does nothing.
Not every line may run; this method serves as a way to give the line provider advance notice that a line may run, not will run.
IEnumerable<string>
lineIDs
A collection of line IDs that the line provider should prepare for.
CancellationToken
cancellationToken
A cancellation token that indicates whether the operation should be cancelled.
Method in UnityLocalisedLineProvider
Removes all marker processors that handle markers named attributeName
.
string
attributeName
The name of the marker to remove processors for.
Method in UnityLocalisedLineProvider
Called by Unity when the LineProviderBehaviour has first appeared in the scene.
This method is public
virtual
to allow subclasses to override it.
Method in UnityLocalisedLineProvider
Adds a new marker processor to the line provider.
string
attributeName
The name of the markers to use markerProcessor
for.
markerProcessor
The marker processor to add.
Method in UnityLocalisedLineProvider
Prepares and returns a LocalizedLine from the specified Line .
line
The to produce the from.
CancellationToken
cancellationToken
A cancellation token that indicates whether the process of fetching the localised version of line
should be cancelled.
A localized line, ready to be presented to the player.
Class in Yarn.Unity.UnityLocalization
Inherits from LineProviderBehaviour
A line provider that uses the Unity Localization system to get localized content for Yarn lines.
Removes all marker processors that handle markers named attributeName
.
Prepares and returns a from the specified .
Signals to the line provider that lines with the provided line IDs may be presented shortly.
Adds a new marker processor to the line provider.
Called by Unity when the has first appeared in the scene.
Gets the user's current locale identifier, as a BCP-47 code.