Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in Localization
Adds a new string to the runtime string table.
This method updates the localisation's runtime string table, which is useful for adding or changing the localisation during gameplay or in a built player. It doesn't modify the asset on disk, and any changes made will be lost when gameplay ends.
Name | Description |
---|---|
Class in
Name | Description |
---|
Name | Description |
---|
Method in
Name | Description |
---|
string
key
The key for this string (generally, the line ID.)
string
value
The user-facing text for this string, in the language specified by LocaleCode .
|
|
Adds a new string to the runtime string table. |
Adds a collection of strings to the runtime string table. |
Adds a collection of strings to the runtime string table. |
Gets the line IDs present in this localization. |
Returns a boolean value indicating whether this contains a string with the given key.
Gets a value indicating whether this contains assets that are linked to strings.
Gets a value indicating whether this makes use of Addressable Assets ( true
), or if it stores its assets as direct references ( false
).
Name | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, T>>
objects
Method in Localization
Adds a collection of strings to the runtime string table.
This method updates the localisation's runtime string table, which is useful for adding or changing the localisation during gameplay or in a built player. It doesn't modify the asset on disk, and any changes made will be lost when gameplay ends.
Method in Localization
Returns a boolean value indicating whether this Localization contains a string with the given key.
true
if this Localization has a string for the given key; false
otherwise.
Method in Localization
Adds a collection of strings to the runtime string table.
This method updates the localisation's runtime string table, which is useful for adding or changing the localisation during gameplay or in a built player. It doesn't modify the asset on disk, and any changes made will be lost when gameplay ends.
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>
strings
The collection of keys and strings to add.
string
key
The key to search for.
string
key
strings
The collection of StringTableEntry objects to add.
System.Collections.Generic.IEnumerable<Yarn.Unity.StringTableEntry>
stringTableEntries
Method in Localization
Gets the line IDs present in this localization.
The line IDs can be used to access the localized text or asset associated with a line.
The line IDs.
Name | Description |
---|---|
string
key
Name | Description |
---|---|
string
key
T
value
Property in Localization
Gets a value indicating whether this Localization contains assets that are linked to strings.
Name | Description |
---|---|
string
key
Property in Localization
Gets a value indicating whether this Localization makes use of Addressable Assets ( true
), or if it stores its assets as direct references ( false
).
If this property is true
, Yarn.Unity.Localization.GetLocalizedObject1(System.String)</code> and <code>Yarn.Unity.Localization.ContainsLocalizedObject1(System.String)
should not be used to retrieve localised objects. Instead, the Addressable Assets API should be used.