Class AssetTable
An AssetTable
Inheritance
Inherited Members
Namespace: UnityEngine.Localization.Tables
Assembly: Unity.Localization.dll
Syntax
public class AssetTable : DetailedLocalizationTable<AssetTableEntry>, IMetadataCollection, ISerializationCallbackReceiver, IPreloadRequired
Properties
Name | Description |
---|---|
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. |
Methods
Name | Description |
---|---|
CreateTableEntry() | Creates a new, empty AssetTableEntry. |
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. |
ReleaseAsset(AssetTableEntry) | Release an asset for a single entry that has been preloaded or cached. |
ReleaseAsset(TableEntryReference) | Release an asset for a single entry that have been preloaded or cached |
ReleaseAssets() | Releases all assets that have been preloaded or cached and resets the preload state so it can be performed again. Note: This is called automatically by LocalizedAssetDatabase when the SelectedLocale is changed. |