Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Class in Yarn.Unity.UnityLocalization
Inherits from System.Object
Contains Yarn Spinner related metadata for Unity string table entries.
The name of the Yarn node that this line came from.
The #hashtags
present on the line.
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.
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.
Property in UnityLocalisedLineProvider
Gets the user's current locale identifier, as a BCP-47 code.
This value is used to control how certain replacement markers behave (for example, the [plural]
marker, which behaves differently depending on the user's locale.)
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.
Contains Yarn Spinner related metadata for Unity string table entries.
A line provider that uses the Unity Localization system to get localized content for Yarn lines.
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
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.