Class LocalizedTable
Inheritance
Namespace: UnityEngine.Localization
Syntax
public abstract class LocalizedTable : ScriptableObject
Properties
LocaleIdentifier
The locale this asset table supports.
Declaration
public LocaleIdentifier LocaleIdentifier { get; set; }
Property Value
Type | Description |
---|---|
LocaleIdentifier |
TableName
The name of this asset table. Must be unique per locale.
Declaration
public string TableName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AddKey(String)
Add a new key to the table. Must be unique or it will be ignored.
Declaration
public abstract void AddKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
GetKeys(HashSet<String>)
Populate the HashSet with all keys in this table. Allows us to collate the keys from multiple locale for the same table name.
Declaration
public abstract void GetKeys(HashSet<string> keySet)
Parameters
Type | Name | Description |
---|---|---|
HashSet<System.String> | keySet |
RemoveKey(String)
Remove the key if it exists.
Declaration
public abstract void RemoveKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key |
ReplaceKey(String, String)
Replace the old key value with the newKey value.
Declaration
public abstract void ReplaceKey(string key, string newKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | |
System.String | newKey |