Class AssetTableCollection
Contains information on all the tables associated with a table collection name and type.
Implements
Inherited Members
Namespace: UnityEditor .Localization
Assembly: Unity.Localization.Editor.dll
Syntax
public class AssetTableCollection : LocalizationTableCollection, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
Asset |
A helper property which is the contents of Tables loaded and cast to Asset |
Default |
The default value to use for Group. |
Required |
The required attribute for an extension to be added to this collection through the Editor. |
Table |
The type of table stored in the collection. |
Methods
Name | Description |
---|---|
Add |
Add a localized asset to the asset table that matches the Locale |
Add |
Add a localized asset to the asset table. This function will ensure the localization system adds the asset to the Addressables system and sets the asset up for use. |
Clear |
Removes all the entries from Shared |
Get |
Returns the expected type for the entry. When an asset is first added to an entry, the type is recorded so that the Editor can ensure all subsequent assets that are added are compatible. |
Get |
Returns an enumerator that can be used to step through each key and its localized values, such as in a foreach loop.
Internally Shared |
Remove |
Remove the asset mapping from the table entry and also cleans up the Addressables if necessary. |
Remove |
Removes the entry from the Shared |
Remove |
Remove the table from the Addressables system. |
Set |
The type of asset that is expected by this entry. By default this is determined by the first asset that is added in the Editor however this can be used to override it so it always expects this asset type instead of reverting back to Object when the last asset is removed. |
Update |
Updates the group the asset should belong to. Assets will be stored in groups for the Locale they are used by unless they are used by more than 1 Locale, then they will be moved to the shared group. |