Class DetailedLocalizationTable<TEntry>
Provides common functionality for both string and asset tables.
Inherited Members
Namespace: UnityEngine.Localization.Tables
Assembly: Unity.Localization.dll
Syntax
public abstract class DetailedLocalizationTable<TEntry> : LocalizationTable, IMetadataCollection, ISerializationCallbackReceiver where TEntry : TableEntry
Type Parameters
Name | Description |
---|---|
TEntry |
Properties
Name | Description |
---|---|
Count | The number of entries in this Table. |
IsReadOnly | Will always be false. Implemented because it is required by the System.Collections.IList interface. |
this[long] | Get/Set a value using the specified key. |
this[string] | Get/Set a value using the specified key name. |
Values | All values in this table. |
Methods
Name | Description |
---|---|
Add(KeyValuePair<long, TEntry>) | Adds the item value with the specified keyId. |
Add(long, TEntry) | Adds the entry with the specified keyId. |
AddEntry(long, string) | Add or update an entry in the table. |
AddEntry(string, string) | Add or update an entry in the table. |
AddEntryFromReference(TableEntryReference, string) | Add or update an entry in the table. |
CheckForMissingSharedTableDataEntries(MissingEntryAction) | Tables do not store the full information for an entry, instead they store just the Id of that entry which can then be referenced in SharedData. It is possible that something may have caused an entry to be in the Table but missing from SharedData. This will cause issues and often result in the entry being ignored. This will check for any entries that exist in the table but do not have an entry in SharedData. |
Clear() | Clear all entries in this table. |
Contains(KeyValuePair<long, TEntry>) | Returns true if the table contains the item. |
ContainsKey(long) | Returns true if the table contains an entry with the keyId. |
ContainsValue(string) | Returns true if the table contains an entry with the same value. |
CopyTo(KeyValuePair<long, TEntry>[], int) | Copies the contents of the table into an array starting at the arrayIndex. |
CreateEmpty(TableEntryReference) | Create an empty entry in the table at the specified entry. |
CreateTableEntry() | Returns a new instance of TEntry. |
GetEntry(long) | Returns the entry for the key id or null if one does not exist. |
GetEntry(string) | Returns the entry for the key or null if one does not exist. |
GetEntryFromReference(TableEntryReference) | Returns the entry reference or null if one does not exist. |
GetEnumerator() | Return an enumerator for the entries in this table. |
Remove(KeyValuePair<long, TEntry>) | Remove the item from the table if it exists. |
Remove(long) | Remove the entry with the keyId. |
RemoveEntry(long) | Remove an entry from the table if it exists. |
RemoveEntry(string) | Remove an entry from the table if it exists. |
TryGetValue(long, out TEntry) | Find the entry, if it exists in the table. |