docs.unity3d.com
Search Results for

    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
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.MARS.Data
    Assembly: Unity.MARS.Editor.dll
    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
    int
    Overrides
    object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In This Article
    Back to top
    Copyright © 2025 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)