Class AddressableAssetTableT<TObject> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AddressableAssetTableT<TObject>

    Maps asset guid to key for a selected Locale. The asset must also be managed by the Addressables system for it to be loaded at runtime.

    Inheritance
    System.Object
    LocalizedTable
    LocalizedAssetTable
    AddressableAssetTable
    AddressableAssetTableT<TObject>
    AudioClipAssetTable
    SpriteAssetTable
    Texture2DAssetTable
    Inherited Members
    AddressableAssetTable.m_PreloadOperation
    AddressableAssetTable.AssetMap
    AddressableAssetTable.GetGuidFromKey(UInt32)
    AddressableAssetTable.AddAsset(String, String)
    AddressableAssetTable.AddAsset(UInt32, String)
    AddressableAssetTable.OnBeforeSerialize()
    AddressableAssetTable.OnAfterDeserialize()
    LocalizedTable.LocaleIdentifier
    LocalizedTable.TableName
    LocalizedTable.Keys
    LocalizedTable.ToString()
    Namespace: UnityEngine.Localization
    Syntax
    public class AddressableAssetTableT<TObject> : AddressableAssetTable, IPreloadRequired, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    TObject

    The type of Asset being localized. For example Texture2D, AudioClip, Prefab etc.

    Properties

    PreloadOperation

    TODO: DOC

    Declaration
    public override AsyncOperationHandle PreloadOperation { get; }
    Property Value
    Type Description
    AsyncOperationHandle
    Overrides
    AddressableAssetTable.PreloadOperation

    SupportedAssetType

    Declaration
    public override Type SupportedAssetType { get; }
    Property Value
    Type Description
    System.Type
    Overrides
    LocalizedAssetTable.SupportedAssetType

    Methods

    GetAssetAsync(UInt32)

    Returns the loading operation for the asset. Check isDone to see if the asset is available for immediate use, if not you can yield on the operation or add a callback subscriber.

    Declaration
    public AsyncOperationHandle<TObject> GetAssetAsync(uint key)
    Parameters
    Type Name Description
    System.UInt32 key
    Returns
    Type Description
    AsyncOperationHandle<TObject>

    LoadAllAssets()

    Force the table to load all assets(if they are not already loading or loaded.

    Declaration
    public virtual void LoadAllAssets()
    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