Class UnityLocalizationSettingsEditor
Custom Unity Editor for UnityLocalizationSettings that provides interface for configuring language keys and localization tables.
Integrates with Unity's localization system to display available tables and game settings for selection.
Namespace: Serenity.Localization.Installation.Settings.Editor
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public class UnityLocalizationSettingsEditor : FoundationEditor<UnityLocalizationSettings>
Constructors
UnityLocalizationSettingsEditor()
Declaration
public UnityLocalizationSettingsEditor()
Methods
OnInspectorGUI()
Renders the custom inspector GUI for the localization settings.
Displays dropdowns for language key selection and localization table configuration.
Declaration
public override void OnInspectorGUI()
RenderGameLanguageKey(UnityLocalizationSettings)
Renders the game language key as a typed object reference field backed by a UnityLocalizationGameSettingsDefinition asset. The serialized data remains a string id.
Declaration
public void RenderGameLanguageKey(UnityLocalizationSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLocalizationSettings | settings | Localization settings to modify with the selected game language key |
RenderGameLanguageTable(UnityLocalizationSettings)
Renders a dropdown for selecting the game localization string table from available Unity Localization collections.
Loads StringTableCollection assets and creates a Unity localization string table when selection changes.
Declaration
public void RenderGameLanguageTable(UnityLocalizationSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLocalizationSettings | settings | Localization settings to modify with the selected game localization table |
RenderVoiceLanguageKey(UnityLocalizationSettings)
Renders the voice language key as a typed object reference field backed by a UnityLocalizationGameSettingsDefinition asset. The serialized data remains a string id.
Declaration
public void RenderVoiceLanguageKey(UnityLocalizationSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLocalizationSettings | settings | Localization settings to modify with the selected voice language key |
RenderVoiceLanguageTable(UnityLocalizationSettings)
Renders a dropdown for selecting the voice localization asset table from available Unity Localization collections.
Loads AssetTableCollection assets and creates a Unity localization asset table when selection changes.
Declaration
public void RenderVoiceLanguageTable(UnityLocalizationSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLocalizationSettings | settings | Localization settings to modify with the selected voice localization table |