Class UpgradedAssetDatabase
An asset database that answers old package references from the built-in localization module.
Inheritance
Inherited Members
Namespace: UnityEngine.Localization.Upgrade
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class UpgradedAssetDatabase : LocalizedAssetDatabase, IReset, IPreloadRequired
Remarks
The upgrade wizard installs this in place of LocalizedAssetDatabase so scripts written against the package API keep working after the project's tables move to the module. Asset lookups are translated through the LocalizationUpgradeMap; a reference to a collection the upgrade did not convert resolves to nothing with a warning, because the package pipeline would start Addressables operations against content the upgrade may have deleted.
Properties
| Name | Description |
|---|---|
| UpgradeMap | The map the wizard produced, used to translate old references to module collections. |
Methods
| Name | Description |
|---|---|
| GetLocalizedAssetAsyncInternal<TObject>(TableReference, TableEntryReference, Locale, FallbackBehavior) | Implementation for all versions of GetLocalizedAssetAsync<TObject>(TableEntryReference, Locale, FallbackBehavior). |
| GetTableAsync(TableReference, Locale) | Returns the named table. This method is asynchronous and may not have an immediate result. Check IsDone to see if the data is available, if it is false then you can use the Completed event to get a callback when it is finished, yield on the operation or call WaitForCompletion to force the operation to complete. |