ARShareableAnchor

Represents a shareable anchor tracked by an XR device.

Generated by the ARShareableAnchorManager when an XR device creates or loads a shareable anchor in the environment.

Summary

Inheritance

Inherits from: ARTrackable< XRShareableAnchor, ARShareableAnchor >

Public attributes

geospatialPose => _geospatialPose
Gets the geospatial pose where this anchor is placed.
host => _isGeospatialAnchor ? XRShareableAnchorHosts.Geospatial : sessionRelativeData.host
Gets the host of this shareable anchor.
shareableId => sessionRelativeData.shareableId
SerializableGuid
Gets the shareable ID to retrieve the anchor from other clients.
surfaceType => _surfaceType
Gets the surface type of a geospatial anchor.

Public attributes

geospatialPose

XRGeospatialPose geospatialPose => _geospatialPose

Gets the geospatial pose where this anchor is placed.

Combined with surfaceType to retrieve the same geospatial anchor from other clients.

host

XRShareableAnchorHosts host =>
            _isGeospatialAnchor ? XRShareableAnchorHosts.Geospatial : sessionRelativeData.host

Gets the host of this shareable anchor.

shareableId

SerializableGuid shareableId => sessionRelativeData.shareableId

Gets the shareable ID to retrieve the anchor from other clients.

surfaceType

XRGeospatialSurfaceType surfaceType => _surfaceType

Gets the surface type of a geospatial anchor.

It is only valid when host is XRShareableAnchorHosts.Geospatial.