Namespace UnityEngine.Localization.Tables
Classes
AssetTable
An AssetTable
AssetTableEntry
Run time representation of an entry in a AssetTable.
DetailedLocalizationTable<TEntry>
Provides common functionality for both string and asset tables.
DistributedUIDGenerator
A Key generator that uses the current time in ms with the machine id to generate a unique value every time. This means it is safe for multiple users to add entries to the same table without suffering from conflicts due to the entries using the same key but having different values.
The implementation is based on this article https://www.callicoder.com/distributed-unique-id-sequence-number-generator/
The Key is made up of the following components:
Sequence Number | 12 Bits(0 - 11) | A local counter per machine that starts at 0 and is incremented by 1 for each new id request that is made during the same millisecond. The value is limited to 12 bytes so can contain 4095 items before the ids for this millisecond are exhausted and the id generator must wait until the next millisecond before it can continue. |
Machine Id | 10 Bits(12-21) | The Id of the machine. By default, in the Editor, this value is generated from the machines network interface physical address however it can also be set to a user provided value. There is enough space for 1024 machines. |
Epoch Timestamp. | 41 Bits(22-63) | A timestamp using a custom epoch which is the time the class was created. The maximum timestamp that can be represented is 69 years from the custom epoch, at this point the Key generator will have exhausted its possible unique Ids. |
LocalizationTable
Abstract base class for all tables. Contains common functionality.
SequentialIDGenerator
Simple Key generator that increments the next key by 1 each time.
SharedTableData
The SharedTableData holds data that is accessible across all tables. It is responsible for the localization keys and associating the keys to unique ids. Each collection of tables will reference a single SharedTableData asset.
SharedTableData.SharedTableEntry
A entry in the SharedTableData. Contains the unique id, the name of the key and optional Metadata.
StringTable
A table that stores localized strings for a specific Locale.
StringTableEntry
A StringTable entry.
TableEntry
Player version of a table entry that can contain additional data that is not serialized.
Structs
TableEntryReference
Allows for referencing a table entry via key or key id.
TableReference
It is possible to reference a table via either the table collection name or the table collection name guid. The TableReference provides a flexible way to reference via either of these methods and also includes editor functionality.
Interfaces
IKeyGenerator
Provides a way to generate unique Id values for table entries.
Enums
MissingEntryAction
Options for how to handle missing entries when using CheckForMissingSharedTableDataEntries(MissingEntryAction).
TableEntryReference.Type
The type of reference.
TableReference.Type
The type of reference.