Stay organized with collections
Save and categorize content based on your preferences.
ARGeospatialCreatorOrigin
Provides a Geospatial Creator Origin that has both a lat/lon and gamespace coordinates.
This is the reference point used by AR Anchors made in the Geospatial Creator to resolve their location in gamespace.
Summary
Inheritance
Inherits from:
ARGeospatialCreatorObject
Properties
|
Altitude
|
double
Gets the altiude of this origin, in meters according to WGS84.
|
Latitude
|
double
Gets the latitude of this origin, in decimal degrees.
|
Longitude
|
double
Gets the longitude of this origin, in decimal degrees.
|
Public functions
|
SetOriginPoint(double latitude, double longitude, double altitude)
|
void
Sets the geospatial location for this origin, including updating the location for any dependent subcomponents.
|
Properties
Altitude
double Altitude
Gets the altiude of this origin, in meters according to WGS84.
Will return Double.NaN
if the origin point has not been initialized.
Latitude
double Latitude
Gets the latitude of this origin, in decimal degrees.
Will return Double.NaN
if the origin point has not been initialized.
Longitude
double Longitude
Gets the longitude of this origin, in decimal degrees.
Will return Double.NaN
if the origin point has not been initialized.
Public functions
SetOriginPoint
void SetOriginPoint(
double latitude,
double longitude,
double altitude
)
Sets the geospatial location for this origin, including updating the location for any dependent subcomponents.
This method is only available in the Unity Editor; moving the origin at runtime is not supported.
Details |
Parameters |
latitude
|
Latitude for the origin, in decimal degrees.
|
longitude
|
Longitude for the origin, in decimal degrees.
|
altitude
|
Altitude for the origin, meters according to WGS84.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003eARGeospatialCreatorOrigin provides a reference point for AR Anchors, using both latitude/longitude and gamespace coordinates.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from ARGeospatialCreatorObject and includes properties for altitude, latitude, and longitude.\u003c/p\u003e\n"],["\u003cp\u003eThe SetOriginPoint function allows setting the geospatial location, but only within the Unity Editor.\u003c/p\u003e\n"],["\u003cp\u003eAltitude, latitude, and longitude properties return \u003ccode\u003eDouble.NaN\u003c/code\u003e if the origin point hasn't been initialized.\u003c/p\u003e\n"]]],["The ARGeospatialCreatorOrigin provides a reference point with latitude, longitude, and altitude, used by AR Anchors to determine their location in gamespace. It features properties to access the origin's `Altitude` (meters), `Latitude`, and `Longitude` (decimal degrees). The `SetOriginPoint` function allows setting the origin's geospatial location using latitude, longitude, and altitude parameters, and it updates the location of dependent subcomponents. This function is available in Unity editor only.\n"],null,["# ARGeospatialCreatorOrigin Class Reference\n\nARGeospatialCreatorOrigin\n=========================\n\nProvides a Geospatial Creator Origin that has both a lat/lon and gamespace coordinates.\n\nThis is the reference point used by AR Anchors made in the Geospatial Creator to resolve their location in gamespace.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: `ARGeospatialCreatorObject`\n\n| ### Properties ||\n|-------------------------|-------------------------------------------------------------------------|\n| [Altitude](#altitude) | `double` Gets the altiude of this origin, in meters according to WGS84. |\n| [Latitude](#latitude) | `double` Gets the latitude of this origin, in decimal degrees. |\n| [Longitude](#longitude) | `double` Gets the longitude of this origin, in decimal degrees. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|\n| [SetOriginPoint](#setoriginpoint)`(double latitude, double longitude, double altitude)` | `void` Sets the geospatial location for this origin, including updating the location for any dependent subcomponents. |\n\nProperties\n----------\n\n### Altitude\n\n```c#\ndouble Altitude\n``` \nGets the altiude of this origin, in meters according to WGS84.\n\nWill return `Double.NaN` if the origin point has not been initialized. \n\n### Latitude\n\n```c#\ndouble Latitude\n``` \nGets the latitude of this origin, in decimal degrees.\n\nWill return `Double.NaN` if the origin point has not been initialized. \n\n### Longitude\n\n```c#\ndouble Longitude\n``` \nGets the longitude of this origin, in decimal degrees.\n\nWill return `Double.NaN` if the origin point has not been initialized.\n\nPublic functions\n----------------\n\n### SetOriginPoint\n\n```c#\nvoid SetOriginPoint(\n double latitude,\n double longitude,\n double altitude\n)\n``` \nSets the geospatial location for this origin, including updating the location for any dependent subcomponents.\n\nThis method is only available in the Unity Editor; moving the origin at runtime is not supported.\n\n\n| Details ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|-----------------------------------------------------| | `latitude` | Latitude for the origin, in decimal degrees. | | `longitude` | Longitude for the origin, in decimal degrees. | | `altitude` | Altitude for the origin, meters according to WGS84. | |"]]