Stay organized with collections Save and categorize content based on your preferences.

Google.XR.ARCoreExtensions.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.

Summary

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

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
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.

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.