docs.unity3d.com
    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
    public class CommandLineLocaleSelector : object, 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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023