Class AssetTableCollection | Localization | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetTableCollection

    Contains information on all the tables associated with a table collection name and type.

    Inheritance
    Object
    LocalizedTableCollection
    AssetTableCollection
    Inherited Members
    LocalizedTableCollection.Tables
    LocalizedTableCollection.Extensions
    LocalizedTableCollection.TableCollectionName
    LocalizedTableCollection.TableCollectionNameReference
    LocalizedTableCollection.SharedData
    LocalizedTableCollection.SetTableCollectionName(String, Boolean)
    LocalizedTableCollection.SetPreloadTableFlag(Boolean, Boolean)
    LocalizedTableCollection.IsPreloadTableFlagSet()
    LocalizedTableCollection.AddTable(LocalizedTable, Boolean)
    LocalizedTableCollection.AddNewTable(LocaleIdentifier)
    LocalizedTableCollection.AddNewTable(LocaleIdentifier, String)
    LocalizedTableCollection.RemoveTable(LocalizedTable, Boolean)
    LocalizedTableCollection.GetTable(LocaleIdentifier)
    LocalizedTableCollection.RefreshAddressables(Boolean)
    LocalizedTableCollection.ContainsTable(LocalizedTable)
    LocalizedTableCollection.ContainsTable(LocaleIdentifier)
    LocalizedTableCollection.AddExtension(CollectionExtension)
    LocalizedTableCollection.RemoveExtension(CollectionExtension)
    LocalizedTableCollection.CanAddTable(LocalizedTable)
    LocalizedTableCollection.AddSharedTableDataToAddressables()
    LocalizedTableCollection.AddTableToAddressables(LocalizedTable, Boolean)
    LocalizedTableCollection.ImportCollectionIntoProject()
    LocalizedTableCollection.RemoveCollectionFromProject()
    LocalizedTableCollection.OnBeforeSerialize()
    LocalizedTableCollection.OnAfterDeserialize()
    LocalizedTableCollection.ToString()
    Namespace: UnityEditor.Localization
    Syntax
    public class AssetTableCollection : LocalizedTableCollection, ISerializationCallbackReceiver

    Properties

    AssetTables

    A helper property which is the contents of loaded and cast to AssetTable.

    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
    LocalizedTableCollection.DefaultTableGroupName

    RequiredExtensionAttribute

    Declaration
    protected override Type RequiredExtensionAttribute { get; }
    Property Value
    Type Description
    Type
    Overrides
    LocalizedTableCollection.RequiredExtensionAttribute

    TableType

    Declaration
    protected override Type TableType { get; }
    Property Value
    Type Description
    Type
    Overrides
    LocalizedTableCollection.TableType

    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
    LocalizedTableCollection.RemoveTableFromAddressables(LocalizedTable, Boolean)

    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.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023