Class CommandLineLocaleSelector
Allows for setting the Locale through a command line argument when launching the application.
Namespace: UnityEngine.Localization.Settings
Syntax
[Serializable]
public class CommandLineLocaleSelector : IStartupLocaleSelector
Properties
CommandLineArgument
The command line argument used to assign the locale.
Declaration
public string CommandLineArgument { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
GetStartupLocale(ILocalesProvider)
Returns the selected locale from the available locales list.
Declaration
public Locale GetStartupLocale(ILocalesProvider availableLocales)
Parameters
Type | Name | Description |
---|---|---|
ILocalesProvider | availableLocales | The list of locales that should be searched. |
Returns
Type | Description |
---|---|
Locale | Locale that matches the command line argument or null. |