docs.unity.cn
    Show / Hide Table of Contents

    Class SpecificLocaleSelector

    Returns the a specific locale if it exists.

    Inheritance
    Object
    SpecificLocaleSelector
    Namespace: UnityEngine.Localization.Settings
    Syntax
    [Serializable]
    public class SpecificLocaleSelector : IStartupLocaleSelector

    Properties

    LocaleId

    The Id of the Locale that should be used if possible when selecting.

    Declaration
    public LocaleIdentifier LocaleId { get; set; }
    Property Value
    Type Description
    LocaleIdentifier

    Methods

    GetStartupLocale(ILocalesProvider)

    Returns the Locale that matches LocaleId or null if one could not be found.

    Declaration
    public Locale GetStartupLocale(ILocalesProvider availableLocales)
    Parameters
    Type Name Description
    ILocalesProvider availableLocales
    Returns
    Type Description
    Locale
    Implements
    IStartupLocaleSelector.GetStartupLocale(ILocalesProvider)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023