Class LocalizationEditorSettings
Provides methods for configuring Localization settings including tables and Locales.
Namespace: UnityEditor.Localization
Assembly: Unity.Localization.Editor.dll
Syntax
public class LocalizationEditorSettings
Properties
Name | Description |
---|---|
ActiveLocalizationSettings | The LocalizationSettings used for this project and available in the player and editor. |
EditorEvents | Localization modification events that can be used when building editor components. |
EntryReferenceMethod | Adds a reference to a table entry in the Editor. |
ShowLocaleMenuInGameView | During play mode, in the editor a menu can be shown to allow for quickly changing the SelectedLocale. |
TableReferenceMethod | Adds a reference to a table in the Editor. |
UseLocalizedAssetSearchPicker | When true the advanced Unity Search picker will be used when selecting LocalizedAsset<TObject> table entries. When false the tree view picker will be used. |
UseLocalizedStringSearchPicker | When true the advanced Unity Search picker will be used when selecting LocalizedString table entries. When false the tree view picker will be used. |
Methods
Name | Description |
---|---|
AddLocale(Locale, bool) | Add the Locale so that it can be used by the Localization system. |
CreateAssetTableCollection(string, string) | Creates a AssetTableCollection using the project Locales. |
CreateAssetTableCollection(string, string, IList<Locale>) | Creates a AssetTableCollection using the provided Locales. |
CreateCollectionFromLooseTables(IList<LocalizationTable>, string) | Creates a StringTableCollection or AssetTableCollection from the provided loose tables. |
CreateStringTableCollection(string, string) | Creates a StringTableCollection using the project Locales. |
CreateStringTableCollection(string, string, IList<Locale>) | Creates a StringTableCollection using the provided Locales. |
FindLooseStringTablesUsingSharedTableData(SharedTableData, IList<LocalizationTable>) | If a table does not belong to a LocalizationTableCollection then it is considered to be loose, it has no parent collection and will be ignored. This returns all loose tables that use the same SharedTableData, they could then be converted into a LocalizationTableCollection using CreateCollectionFromLooseTables(IList<LocalizationTable>, string). |
FindSimilarKey(string) | Returns the AssetTableCollection that contains a table entry with the closest match to the provided text. Uses the Levenshtein distance method. |
GetAssetTableCollection(TableReference) | Returns a AssetTableCollection with the matching TableReference. |
GetAssetTableCollections() | Returns all AssetTableCollection assets that are in the project. |
GetCollectionForSharedTableData(SharedTableData) | Returns the LocalizationTableCollection that the SharedTableData is part of or null if one could not be found. |
GetCollectionFromTable(LocalizationTable) | Returns the LocalizationTableCollection that the table is part of or null if the table has no collection. |
GetLocale(LocaleIdentifier) | Returns the locale that matches the LocaleIdentifier"/> in the project. |
GetLocales() | Returns all Locale that are part of the Localization system and will be included in the player. To Add Locales use AddLocale(Locale, bool) and RemoveLocale(Locale, bool) to remove them. Note this does not include PseudoLocale which can be retrieved by using GetPseudoLocales(). |
GetPreloadTableFlag(LocalizationTable) | Returns true if the table is marked for preloading. |
GetPseudoLocales() | Returns all PseudoLocale that are part of the Localization system and will be included in the player. |
GetStringTableCollection(TableReference) | Returns a StringTableCollection with the matching TableReference. |
GetStringTableCollections() | Returns all StringTableCollection that are in the project. |
RemoveLocale(Locale, bool) | Removes the locale from the Localization system. |
SetPreloadTableFlag(LocalizationTable, bool, bool) | Adds or Remove the preload flag for the selected table. |