API reference
API reference
Select your platform
No SDKs available
No versions available

SharedSpatialAnchorErrorHandler Class

Extends MonoBehaviour
A utility MonoBehaviour component to handle Shared Spatial Anchor's operational errors.
This component will spawn a visual alert box with error message at runtime. The public methods are meant to be used as listeners for Shared Spatial Anchor's operations. See Editor/BuildingBlocks/BlockData/SampleSpatialAnchorController in the Meta XR Core SDK for an example of how to use this class.

Fields

Disables message alert box at runtime.

Member Functions

Handles the OnAnchorCreateCompleted event by logging "Failed to share the spatial anchor.".
If there is a cloud storage error, it will log that instead.
Parameters
result
Contains the OVRSpatialAnchor creation result.
Propagates OVRSpatialAnchor share failure message.
Parameters
result
Contains the OVRSpatialAnchor share result.
Handles the OnSharedSpatialAnchorsLoadCompleted event by logging "Failed to load the spatial anchor(s).".
If there is a cloud storage error, it will log that instead.
Parameters
result
Contains the OVRSpatialAnchor load result.
Handles the OnAnchorsEraseAllCompleted event by logging "Failed to erase the spatial anchor(s).".
Handles the OnAnchorEraseCompleted event by logging "Failed to erase the spatial anchor with uuid: " and the uuid of the anchor.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon