docs.unity3d.com
    Show / Hide Table of Contents

    Class UserGeoLocation

    Data that represents a geo location coordinate and data for displaying it in the GUI

    Inheritance
    Object
    UserGeoLocation
    Namespace: UnityEditor.MARS.Data
    Syntax
    [Serializable]
    [MovedFrom("Unity.MARS")]
    public sealed class UserGeoLocation

    Constructors

    UserGeoLocation()

    Create a new UserGeoLocation with the default value of NullIsland

    Declaration
    public UserGeoLocation()

    UserGeoLocation(GeographicCoordinate, String)

    Create a new UserGeoLocation

    Declaration
    public UserGeoLocation(GeographicCoordinate location, string name)
    Parameters
    Type Name Description
    GeographicCoordinate location

    Location in Latitude and Longitude

    String name

    Name of the Location

    Fields

    NullIsland

    Default user geo location at 0 lat 0 long. This is where the Prime Meridian and the Equator intersect and is referred to as Null Island.

    Declaration
    public static readonly UserGeoLocation NullIsland
    Field Value
    Type Description
    UserGeoLocation

    Properties

    Location

    Location in Latitude and Longitude

    Declaration
    public GeographicCoordinate Location { get; }
    Property Value
    Type Description
    GeographicCoordinate

    Name

    Name of the Location

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String

    Methods

    GetHashCode()

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    Back to top
    Terms of use
    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