docs.unity.cn
    Show / Hide Table of Contents

    Class CommandLineLocaleSelector

    Allows for setting the Locale through a command line argument when launching the application.

    Inheritance
    Object
    CommandLineLocaleSelector
    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.

    Implements
    IStartupLocaleSelector.GetStartupLocale(ILocalesProvider)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023