Class UnityLocalizationSettings
Unity ScriptableObject that stores localization configuration settings including language keys and localization tables.
Implements ILocalizationSettings to provide foundation integration and can be created via Unity's asset menu.
Namespace: Serenity.Localization.Installation.Settings
Assembly: Serenity.UnityLocalization.Installation.dll
Syntax
public class UnityLocalizationSettings : ScriptableObject, ILocalizationSettings, IFoundationSettings
Constructors
UnityLocalizationSettings(string, string, ILocalizationTable, ILocalizationTable)
Initializes a new instance of UnityLocalizationSettings with the specified language keys and localization tables.
Casts the provided interface tables to their concrete Unity implementations.
Declaration
public UnityLocalizationSettings(string gameLanguageKey, string voiceLanguageKey, ILocalizationTable gameLocalizationTable, ILocalizationTable voiceLocalizationTable)
Parameters
| Type | Name | Description |
|---|---|---|
| string | gameLanguageKey | Language key for game text localization |
| string | voiceLanguageKey | Language key for voice audio localization |
| ILocalizationTable | gameLocalizationTable | Game text localization table interface |
| ILocalizationTable | voiceLocalizationTable | Voice audio localization table interface |
Fields
GameLanguageKey
Declaration
public string GameLanguageKey
Field Value
| Type | Description |
|---|---|
| string | Language key used for game text localization (UI, dialogue, etc.). |
GameLocalizationTable
Declaration
public UnityLocalizationStringTable GameLocalizationTable
Field Value
| Type | Description |
|---|---|
| UnityLocalizationStringTable | Unity localization string table containing game text translations. |
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | Globally unique identifier for this localization settings instance. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this localization settings instance. |
VoiceLanguageKey
Declaration
public string VoiceLanguageKey
Field Value
| Type | Description |
|---|---|
| string | Language key used for voice audio localization (voice acting, audio clips). |
VoiceLocalizationTable
Declaration
public UnityLocalizationAssetTable VoiceLocalizationTable
Field Value
| Type | Description |
|---|---|
| UnityLocalizationAssetTable | Unity localization asset table containing voice and audio asset translations. |