Class AssetTableCollection
Contains information on all the tables associated with a table collection name and type.
Inherited Members
Namespace: UnityEditor.Localization
Syntax
public class AssetTableCollection : LocalizedTableCollection, ISerializationCallbackReceiver
Properties
AssetTables
A helper property which is the contents of
Declaration
public virtual ReadOnlyCollection<AssetTable> AssetTables { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<AssetTable> |
DefaultTableGroupName
Declaration
public override string DefaultTableGroupName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
RequiredExtensionAttribute
Declaration
protected override Type RequiredExtensionAttribute { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
TableType
Declaration
protected override Type TableType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Methods
AddAssetToTable(AssetTable, TableEntryReference, Object, Boolean)
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.
Declaration
public virtual void AddAssetToTable(AssetTable table, TableEntryReference entryReference, Object asset, bool createUndo = false)
Parameters
Type | Name | Description |
---|---|---|
AssetTable | table | The table to add the asset to, must be part of the collection. |
TableEntryReference | entryReference | The table entry Key or Key Id. |
UnityEngine.Object | asset | The asset to add. |
Boolean | createUndo | Should an undo operation be created? |
RemoveAssetFromTable(AssetTable, TableEntryReference, Boolean)
Remove the asset mapping from the table entry and also cleans up the Addressables if necessary.
Declaration
public void RemoveAssetFromTable(AssetTable table, TableEntryReference entryReference, bool createUndo = false)
Parameters
Type | Name | Description |
---|---|---|
AssetTable | table | |
TableEntryReference | entryReference | |
Boolean | createUndo |
RemoveTableFromAddressables(LocalizedTable, Boolean)
Declaration
protected override void RemoveTableFromAddressables(LocalizedTable table, bool createUndo)
Parameters
Type | Name | Description |
---|---|---|
LocalizedTable | table | |
Boolean | createUndo |
Overrides
UpdateAssetGroup(AddressableAssetSettings, AddressableAssetEntry, Boolean)
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.
Declaration
protected virtual void UpdateAssetGroup(AddressableAssetSettings settings, AddressableAssetEntry assetEntry, bool createUndo)
Parameters
Type | Name | Description |
---|---|---|
AddressableAssetSettings | settings | |
AddressableAssetEntry | assetEntry | |
Boolean | createUndo | Used to indicate if an Undo operation should be created. |