Class AddressableAssetTable | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class AddressableAssetTable

    Maps asset guid to key for a selected Locale.

    Inheritance
    System.Object
    LocalizedTable
    LocalizedAssetTable
    AddressableAssetTable
    AddressableAssetTableT<TObject>
    Inherited Members
    LocalizedAssetTable.SupportedAssetType
    LocalizedTable.LocaleIdentifier
    LocalizedTable.TableName
    LocalizedTable.Keys
    LocalizedTable.ToString()
    Namespace: UnityEngine.Localization
    Syntax
    public abstract class AddressableAssetTable : LocalizedAssetTable, IPreloadRequired, ISerializationCallbackReceiver

    Fields

    m_PreloadOperation

    Declaration
    protected AsyncOperationHandle? m_PreloadOperation
    Field Value
    Type Description
    System.Nullable<AsyncOperationHandle>

    Properties

    AssetMap

    The internal map used to reference assets by key.

    Declaration
    public Dictionary<uint, AssetTableItemData> AssetMap { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.UInt32, AssetTableItemData>

    PreloadOperation

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

    Methods

    AddAsset(String, String)

    Maps the asset to the key for this LocaleId.

    Declaration
    public virtual void AddAsset(string assetKey, string assetGuid)
    Parameters
    Type Name Description
    System.String assetKey

    The key to map the asset to.

    System.String assetGuid

    The guid of the asset. The asset will also need to be controlled by the Addressables system to be found.

    AddAsset(UInt32, String)

    Maps the asset to the key for this LocaleId.

    Declaration
    public virtual void AddAsset(uint assetKeyId, string assetGuid)
    Parameters
    Type Name Description
    System.UInt32 assetKeyId

    The key Id to map the asset to.

    System.String assetGuid

    The guid of the asset. The asset will also need to be controlled by the Addressables system to be found.

    GetGuidFromKey(UInt32)

    Returns the asset guid for a specific key.

    Declaration
    public string GetGuidFromKey(uint assetKey)
    Parameters
    Type Name Description
    System.UInt32 assetKey
    Returns
    Type Description
    System.String

    guid or string.Empty if it was not found.

    OnAfterDeserialize()

    Declaration
    public virtual void OnAfterDeserialize()

    OnBeforeSerialize()

    Declaration
    public virtual void OnBeforeSerialize()
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX