Class LocalizationUpgradeMap
Records how package table collections map to the module collections that replaced them.
Inherited Members
Namespace: UnityEngine.Localization.Upgrade
Assembly: Unity.Localization.dll
Syntax
public class LocalizationUpgradeMap : ScriptableObject
Remarks
The upgrade wizard writes one asset of this type when it converts a project to the built-in localization module. Each converted collection gets a LocalizationUpgradeMap.CollectionMapping holding the old collection's guid and name, the new module collection's guid, and any entry ids that had to change when a string and an asset collection merged. The redirect databases installed by the wizard use the map to answer old TableReference lookups from the module.
Properties
| Name | Description |
|---|---|
| Collections | Every collection converted by the upgrade. |
| ConvertedEveryCollection | Whether the upgrade that produced this map converted every collection in the project. |
Methods
| Name | Description |
|---|---|
| AddCollection(CollectionMapping) | Adds a converted collection to the map. |
| MapEntryId(TableReference, long) | Maps an entry id from a package collection to its id in the replacement module collection. |
| TryGetCollection(TableReference, out TableReference) | Finds the module collection that replaced a package collection. |