LocalizationEditorSettings
Provides editor access to the active localization settings for the project.
Read time 1 minuteLast updated 5 hours ago
Definition
- Type: Class
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
public static class LocalizationEditorSettings
Remarks
The active settings are stored as an EditorBuildSettings config object and included in player builds. Use LocalizationEditorSettings.ActiveSettings to read or assign them, and LocalizationEditorSettings.CollectionsChanged to react to the project's ResourceTableCollection assets and their contents changing.
Static Properties
Property | Description |
|---|---|
| ActiveSettings | Gets or sets the active localization settings for the project. |
Static Methods
Method | Description |
|---|---|
| AddTable | Adds a table for a locale to a collection, or returns the collection's existing table for that locale. |
| CreateCollection | Creates a table collection with one table for each available locale. |
| CreateStringEntry | Adds a string key to a collection across every one of its locale tables. |
| GetCollection | Gets the table collection that a table reference points to. |
| GetCollections | Gets every table collection in the project. |
Static Events
Member | Description |
|---|---|
| CollectionsChanged | Occurs when the project's table collections change. |
| LocalesChanged | Occurs when the set of available locales in the project changes. |