Class Locale | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Locale

    Inheritance
    System.Object
    Locale
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class Locale : IEquatable<Locale>

    Constructors

    Locale(String, String)

    Declaration
    public Locale(string languageCode, string countryCode = null)
    Parameters
    Type Name Description
    System.String languageCode
    System.String countryCode

    Properties

    countryCode

    Declaration
    public string countryCode { get; }
    Property Value
    Type Description
    System.String

    languageCode

    Declaration
    public string languageCode { get; }
    Property Value
    Type Description
    System.String

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    Equals(Locale)

    Declaration
    public bool Equals(Locale other)
    Parameters
    Type Name Description
    Locale other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    Equality(Locale, Locale)

    Declaration
    public static bool operator ==(Locale left, Locale right)
    Parameters
    Type Name Description
    Locale left
    Locale right
    Returns
    Type Description
    System.Boolean

    Inequality(Locale, Locale)

    Declaration
    public static bool operator !=(Locale left, Locale right)
    Parameters
    Type Name Description
    Locale left
    Locale right
    Returns
    Type Description
    System.Boolean
    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