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