ARGeospatialAnchor

The ARGeospatialAnchor is an ARCore Extensions object that provides a similar service to AR Foundation's ARAnchor as an anchor for game objects in your scene.

It is created at the specified geodetic location and orientation relative to the Earth.

Summary

Inheritance

Inherits from: UnityEngine::MonoBehaviour , UnityEngine::XR::ARSubsystems::ITrackable

Properties

nativePtr
Gets the native pointer that represents this Geospatial Anchor.
pose
Gets the Pose associated with this Geospatial Anchor.
terrainAnchorState Deprecated. When resolving a Terrain anchor using an async method, get the result status from the Promise object.
Gets the TerrainAnchorState associated with this Terrain anchor.
trackableId
Gets the TrackableId associated with this Geospatial Anchor.
trackingState
Gets the TrackingState associated with this Geospatial Anchor.

Public functions

OnDestroy()
void
When the game object containing the ARGeospatialAnchor component is destroyed, the underlying native object will be detached and the resource will be released.
Update()
void
Unity's Update method.

Properties

nativePtr

IntPtr nativePtr

Gets the native pointer that represents this Geospatial Anchor.

pose

Pose pose

Gets the Pose associated with this Geospatial Anchor.

terrainAnchorState

TerrainAnchorState terrainAnchorState

Gets the TerrainAnchorState associated with this Terrain anchor.

Deprecated. When resolving a Terrain anchor using an async method, get the result status from the Promise object.

trackableId

TrackableId trackableId

Gets the TrackableId associated with this Geospatial Anchor.

trackingState

TrackingState trackingState

Gets the TrackingState associated with this Geospatial Anchor.

Public functions

OnDestroy

void OnDestroy()

When the game object containing the ARGeospatialAnchor component is destroyed, the underlying native object will be detached and the resource will be released.

Update

void Update()

Unity's Update method.