docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateLocale

    CreateLocale(string)

    Create a new Locale using the culture code.

    Declaration
    public static Locale CreateLocale(string code)
    Parameters
    Type Name Description
    string code

    Culture code.

    Returns
    Type Description
    Locale

    CreateLocale(LocaleIdentifier)

    Create a new Locale using the provided LocaleIdentifier.

    Declaration
    public static Locale CreateLocale(LocaleIdentifier identifier)
    Parameters
    Type Name Description
    LocaleIdentifier identifier
    Returns
    Type Description
    Locale

    CreateLocale(SystemLanguage)

    Create a Locale using the system language enum value.

    Declaration
    public static Locale CreateLocale(SystemLanguage language)
    Parameters
    Type Name Description
    SystemLanguage language
    Returns
    Type Description
    Locale

    CreateLocale(CultureInfo)

    Create a Locale using a CultureInfo.

    Declaration
    public static Locale CreateLocale(CultureInfo cultureInfo)
    Parameters
    Type Name Description
    CultureInfo cultureInfo
    Returns
    Type Description
    Locale
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)