Class LocalizationTableCollection
Editor interface to a collection of tables which all share the same SharedTableData.
Implements
Inherited Members
Namespace: UnityEditor.Localization
Assembly: Unity.Localization.Editor.dll
Syntax
public abstract class LocalizationTableCollection : ScriptableObject, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
DefaultGroupName | The default value to use for Group. |
Extensions | Extensions attached to the collection. Extensions can be used to attach additional data or functionality to a collection. |
Group | Collections can be added to groups which will be used when showing the list of collections in the Localization Window.
For example all collections with the Group "UI" would be shown under a UI menu in the |
RequiredExtensionAttribute | The required attribute for an extension to be added to this collection through the Editor. |
SharedData | The SharedTableData that is used by all tables in this collection. |
TableCollectionName | The name of this collection of Tables. |
TableCollectionNameReference | Reference to use to refer to this table collection. |
TableType | The type of table stored in the collection. |
Tables | All tables that are part of this collection. Tables are stored as LazyLoadReferences so that they only load when required and not when the collection loads. |
Methods
Name | Description |
---|---|
AddExtension(CollectionExtension) | Attaches the provided extension to the collection. |
AddNewTable(LocaleIdentifier) | Creates a table in the collection. |
AddNewTable(LocaleIdentifier, string) | Creates a table in the collection. |
AddSharedTableDataToAddressables() | Adds SharedData to Addressables. |
AddTable(LocalizationTable, bool, bool) | Adds the table to the collection and updates Addressable assets. The table will not be added if it is not using the same SharedTableData as the collection. |
AddTableToAddressables(LocalizationTable, bool) | Add the table to the Addressable assets system. |
ClearAllEntries() | Removes all the entries from SharedTableData and all Tables that are part of this collection. |
ContainsTable(LocaleIdentifier) | Checks if a table with the same LocaleIdentifier exists in the collection. |
ContainsTable(LocalizationTable) | Checks if a table with the same instance Id exists in the collection. This check should be fast as a table does not need to be loaded to have its instance Id compared. |
GetRowEnumeratorUnsorted<TTable, TEntry>(IList<TTable>) | Returns an enumerable for stepping through the rows of the collection. Unlike GetRowEnumerator<TTable, TEntry>(IEnumerable<TTable>), the items are not sorted by Id and will be returned in the same order as they are stored in SharedData. |
GetRowEnumerator<TTable, TEntry>(IEnumerable<TTable>) | Returns an enumerable for stepping through the rows of the collection. Sorted by the SharedData entry Ids. |
GetTable(LocaleIdentifier) | Returns the table with the matching LocaleIdentifier. |
ImportCollectionIntoProject() | Called when the asset is created or imported into a project(via OnPostprocessAllAssets). |
IsPreloadTableFlagSet() | Are the tables in the collection set to preload? |
RefreshAddressables(bool) | Forces Addressables data to be updated for this collection. This will ensure that SharedData and Tables are both part of Addressables and correctly labeled. |
RemoveCollectionFromProject() | Called to remove the asset from a project, such as when it is about to be deleted. |
RemoveEntry(TableEntryReference) | Removes the entry from the SharedTableData and all tables that are part of this collection. |
RemoveExtension(CollectionExtension) | Removes the extension from Extensions. |
RemoveTable(LocalizationTable, bool, bool) | Removes the table from the collection and updates Addressables assets. |
RemoveTableFromAddressables(LocalizationTable, bool) | Remove the table from the Addressables system. |
SetPreloadTableFlag(bool, bool) | Sets the preload flag for all tables in this collection. |
SetTableCollectionName(string, bool) | Changes the table collection name. This will change TableCollectionName and update the Addressables data for all tables within the collection. |