ARStreetscapeGeometryManager

Provides ARCore Geospatial Streetscape Geometry APIs.

See the Streetscape Geometry Developer Guide for additional information.

Summary

Inheritance

Inherits from: UnityEngine::MonoBehaviour

Public attributes

AnchorPrefab = null
The 3D object that represents an ARAnchors.

Events

StreetscapeGeometriesChanged
Invoked when Streetscape Geometries have changed (added, updated, or removed).

Public functions

AttachAnchor(ARStreetscapeGeometry geometry, Pose pose)
Attempts to create a new anchor attached to geometry.
GetStreetscapeGeometry(TrackableId trackableId)
Gets the ARStreetscapeGeometry based on trackableId.
Update()
void
Unity's Update() method.

Public attributes

AnchorPrefab

GameObject AnchorPrefab = null

The 3D object that represents an ARAnchors.

Events

StreetscapeGeometriesChanged

Action< ARStreetscapeGeometriesChangedEventArgs > StreetscapeGeometriesChanged

Invoked when Streetscape Geometries have changed (added, updated, or removed).

Public functions

AttachAnchor

ARAnchor AttachAnchor(
  ARStreetscapeGeometry geometry,
  Pose pose
)

Attempts to create a new anchor attached to geometry.

If AnchorPrefab is not null, a new instance of that prefab will be instantiated. Otherwise, a new GameObject will be created. In either case, the resulting GameObject will have an ARAnchor component added to it.

Details
Parameters
geometry
The ARStreetscapeGeometry that this anchor will be associated with.
pose
The pose in Unity world space for the newly created anchor.
Returns
The ARAnchor if successful, otherwise null.

GetStreetscapeGeometry

ARStreetscapeGeometry GetStreetscapeGeometry(
  TrackableId trackableId
)

Gets the ARStreetscapeGeometry based on trackableId.

Details
Parameters
trackableId
The id for the ARStreetscapeGeometry.
Returns
The ARStreetscapeGeometry associated with this TrackableId if successful, null otherwise.

Update

void Update()

Unity's Update() method.