Class LocalizedAssetDatabase | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class LocalizedAssetDatabase

    Inheritance
    System.Object
    LocalizedDatabase
    LocalizedAssetDatabase
    Inherited Members
    LocalizedDatabase.DefaultTableName
    Namespace: UnityEngine.Localization
    Syntax
    public class LocalizedAssetDatabase : LocalizedDatabase, IPreloadRequired

    Fields

    AssetTableLabel

    Declaration
    public const string AssetTableLabel = "AssetTable"
    Field Value
    Type Description
    System.String

    Properties

    PreloadOperation

    Declaration
    public AsyncOperationHandle PreloadOperation { get; }
    Property Value
    Type Description
    AsyncOperationHandle
    Implements
    IPreloadRequired.PreloadOperation

    Methods

    GetLocalizedAsset_LoadTableAsync<TObject>(String, String)

    Declaration
    protected virtual AsyncOperationHandle<TObject> GetLocalizedAsset_LoadTableAsync<TObject>(string tableName, string key)
    Parameters
    Type Name Description
    System.String tableName
    System.String key
    Returns
    Type Description
    AsyncOperationHandle<TObject>
    Type Parameters
    Name Description
    TObject

    GetLocalizedAsset_LoadTableAsync<TObject>(String, UInt32)

    Declaration
    protected virtual AsyncOperationHandle<TObject> GetLocalizedAsset_LoadTableAsync<TObject>(string tableName, uint keyId)
    Parameters
    Type Name Description
    System.String tableName
    System.UInt32 keyId
    Returns
    Type Description
    AsyncOperationHandle<TObject>
    Type Parameters
    Name Description
    TObject

    GetLocalizedAssetAsync<TObject>(String, String)

    Loads the asset found in the table with the key.

    Declaration
    public virtual AsyncOperationHandle<TObject> GetLocalizedAssetAsync<TObject>(string tableName, string key)
    Parameters
    Type Name Description
    System.String tableName
    System.String key
    Returns
    Type Description
    AsyncOperationHandle<TObject>
    Type Parameters
    Name Description
    TObject

    Asset type

    GetLocalizedAssetAsync<TObject>(String, UInt32)

    Loads the asset found in the table with the key Id, taken from the KeyDatabase.

    Declaration
    public virtual AsyncOperationHandle<TObject> GetLocalizedAssetAsync<TObject>(string tableName, uint keyId)
    Parameters
    Type Name Description
    System.String tableName
    System.UInt32 keyId
    Returns
    Type Description
    AsyncOperationHandle<TObject>
    Type Parameters
    Name Description
    TObject

    Asset type

    GetTableAsync<TObject>(String)

    Returns the loading operation for the selected table. If isDone is true then the table can be used immediately otherwise yield on the operation or use the callback to wait for it to be completed.

    Declaration
    public virtual AsyncOperationHandle<LocalizedAssetTable> GetTableAsync<TObject>(string tableName)
    Parameters
    Type Name Description
    System.String tableName
    Returns
    Type Description
    AsyncOperationHandle<LocalizedAssetTable>
    Type Parameters
    Name Description
    TObject

    OnLocaleChanged(Locale)

    Called before the LocaleChanged event is sent out in order to give the database a chance to prepare.

    Declaration
    public override void OnLocaleChanged(Locale locale)
    Parameters
    Type Name Description
    Locale locale
    Overrides
    LocalizedDatabase.OnLocaleChanged(Locale)
    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