docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocalizedTable<TTable, TEntry>

    Provides a way to access a LocalizationTable at runtime. See LocalizedStringTable and LocalizedAssetTable for implementations.

    Inheritance
    object
    LocalizedTable<TTable, TEntry>
    LocalizedAssetTable
    LocalizedStringTable
    Implements
    ISerializationCallbackReceiver
    Namespace: UnityEngine.Localization
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public abstract class LocalizedTable<TTable, TEntry> : ISerializationCallbackReceiver where TTable : DetailedLocalizationTable<TEntry> where TEntry : TableEntry
    Type Parameters
    Name Description
    TTable

    The type of Table.

    TEntry

    The type of entry that is part of the table.

    Constructors

    Name Description
    LocalizedTable()

    Initializes and returns an empty instance of a LocalizedTable<TTable, TEntry>.

    Fields

    Name Description
    m_CurrentTable

    Properties

    Name Description
    CurrentLoadingOperation

    The current loading operation for the table when using TableChanged or null if one is not available.

    CurrentLoadingOperationHandle

    The current loading operation for the table when using TableChanged or default if one is not available.

    Database

    The database to request the table from.

    IsEmpty

    Does TableReference contain a valid reference?

    TableReference

    Provides a reference to the LocalizationTable. A table reference can be either the name of the table or the table collection name Guid.

    Methods

    Name Description
    ForceUpdate()

    Force an update as if the SelectedLocale had changed.

    GetTable()

    Provides the table with the TableReference. Uses WaitForCompletion to force the loading to complete synchronously. Please note that WaitForCompletion is not supported on WebGL.

    GetTableAsync()

    Provides the table with the TableReference.

    Events

    Name Description
    TableChanged

    Provides a callback that will be invoked when the table is available or has changed.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)