Class AssetTable
Syntax
public class AssetTable : LocalizedTableT<AssetTableEntry>, IMetadataCollection, IComparable<LocalizedTable>, IDictionary<uint, AssetTableEntry>, ICollection<KeyValuePair<uint, AssetTableEntry>>, IEnumerable<KeyValuePair<uint, AssetTableEntry>>, IEnumerable, ISerializationCallbackReceiver, IPreloadRequired
Properties
PreloadOperation
Declaration
public virtual AsyncOperationHandle PreloadOperation { get; }
Property Value
Type |
Description |
AsyncOperationHandle |
|
Implements
Methods
CreateTableEntry()
Creates a new, empty AssetTableEntry.
Declaration
public override AssetTableEntry CreateTableEntry()
Returns
Overrides
UnityEngine.Localization.Tables.LocalizedTableT<UnityEngine.Localization.Tables.AssetTableEntry>.CreateTableEntry()
GetAssetAsync<TObject>(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<TObject>(uint keyId)
where TObject : Object
Parameters
Type |
Name |
Description |
UInt32 |
keyId |
|
Returns
Type |
Description |
AsyncOperationHandle<TObject> |
|
Type Parameters