docs.unity3d.com
    目次を表示する/隠す

    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)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)