Class UserGeoLocation
Data that represents a geo location coordinate and data for displaying it in the GUI
Inherited Members
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
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |