docs.unity3d.com
    Show / Hide Table of Contents

    Class AssetTable

    An AssetTable

    Inheritance
    Object
    LocalizationTable
    DetailedLocalizationTable<AssetTableEntry>
    AssetTable
    Inherited Members
    DetailedLocalizationTable<AssetTableEntry>.Values
    DetailedLocalizationTable<AssetTableEntry>.Count
    DetailedLocalizationTable<AssetTableEntry>.IsReadOnly
    DetailedLocalizationTable<AssetTableEntry>.Item[Int64]
    DetailedLocalizationTable<AssetTableEntry>.Item[String]
    DetailedLocalizationTable<AssetTableEntry>.CreateEmpty(TableEntryReference)
    DetailedLocalizationTable<AssetTableEntry>.AddEntry(String, String)
    DetailedLocalizationTable<AssetTableEntry>.AddEntry(Int64, String)
    DetailedLocalizationTable<AssetTableEntry>.AddEntryFromReference(TableEntryReference, String)
    DetailedLocalizationTable<AssetTableEntry>.RemoveEntry(String)
    DetailedLocalizationTable<AssetTableEntry>.RemoveEntry(Int64)
    DetailedLocalizationTable<AssetTableEntry>.GetEntryFromReference(TableEntryReference)
    DetailedLocalizationTable<AssetTableEntry>.GetEntry(String)
    DetailedLocalizationTable<AssetTableEntry>.GetEntry(Int64)
    DetailedLocalizationTable<AssetTableEntry>.Add(Int64, AssetTableEntry)
    DetailedLocalizationTable<AssetTableEntry>.Add(KeyValuePair<Int64, AssetTableEntry>)
    DetailedLocalizationTable<AssetTableEntry>.ContainsKey(Int64)
    DetailedLocalizationTable<AssetTableEntry>.ContainsValue(String)
    DetailedLocalizationTable<AssetTableEntry>.Contains(KeyValuePair<Int64, AssetTableEntry>)
    DetailedLocalizationTable<AssetTableEntry>.Remove(Int64)
    DetailedLocalizationTable<AssetTableEntry>.Remove(KeyValuePair<Int64, AssetTableEntry>)
    DetailedLocalizationTable<AssetTableEntry>.CheckForMissingSharedTableDataEntries(MissingEntryAction)
    DetailedLocalizationTable<AssetTableEntry>.TryGetValue(Int64, AssetTableEntry)
    DetailedLocalizationTable<AssetTableEntry>.Clear()
    DetailedLocalizationTable<AssetTableEntry>.CopyTo(KeyValuePair<Int64, AssetTableEntry>[], Int32)
    DetailedLocalizationTable<AssetTableEntry>.GetEnumerator()
    LocalizationTable.LocaleIdentifier
    LocalizationTable.TableCollectionName
    LocalizationTable.SharedData
    LocalizationTable.MetadataEntries
    LocalizationTable.GetMetadata<TObject>()
    LocalizationTable.GetMetadatas<TObject>(IList<TObject>)
    LocalizationTable.GetMetadatas<TObject>()
    LocalizationTable.AddMetadata(IMetadata)
    LocalizationTable.RemoveMetadata(IMetadata)
    LocalizationTable.Contains(IMetadata)
    LocalizationTable.FindKeyId(String, Boolean)
    LocalizationTable.CompareTo(LocalizationTable)
    Namespace: UnityEngine.Localization.Tables
    Syntax
    public class AssetTable : DetailedLocalizationTable<AssetTableEntry>, IMetadataCollection, IComparable<LocalizationTable>, IDictionary<long, AssetTableEntry>, ISerializationCallbackReceiver, IPreloadRequired

    Properties

    PreloadOperation

    Handle to the preload operation for this table. Calling this will start the asset tables preloading operation, it will preload all assets referenced unless the Metadata PreloadAssetTableMetadata is found and has the NoPreload behavior.

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

    Methods

    CreateTableEntry()

    Creates a new, empty AssetTableEntry.

    Declaration
    public override AssetTableEntry CreateTableEntry()
    Returns
    Type Description
    AssetTableEntry
    Overrides
    UnityEngine.Localization.Tables.DetailedLocalizationTable<UnityEngine.Localization.Tables.AssetTableEntry>.CreateTableEntry()

    GetAssetAsync<TObject>(TableEntryReference)

    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<TObject>(TableEntryReference entryReference)
        where TObject : Object
    Parameters
    Type Name Description
    TableEntryReference entryReference
    Returns
    Type Description
    AsyncOperationHandle<TObject>
    Type Parameters
    Name Description
    TObject

    The type of object to load.

    ReleaseAsset(AssetTableEntry)

    Release an asset for a single entry that have been preloaded or cached

    Declaration
    public void ReleaseAsset(AssetTableEntry entry)
    Parameters
    Type Name Description
    AssetTableEntry entry

    A reference to the entry in the table.

    ReleaseAsset(TableEntryReference)

    Release an asset for a single entry that have been preloaded or cached

    Declaration
    public void ReleaseAsset(TableEntryReference entry)
    Parameters
    Type Name Description
    TableEntryReference entry

    A reference to the entry in the table.

    ReleaseAssets()

    Releases all assets that have been preloaded or cached resets the preload state so it can be performed again. Note: This is called automatically by LocalizedAssetDatabase when the SelectedLocale is changed.

    Declaration
    public void ReleaseAssets()
    Back to top
    Terms of use
    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