Editor/BuildingBlocks/BlockData/SampleSpatialAnchorController in the Meta XR Core SDK for an example of how to use this class.
DisableRuntimeGUIAlerts
: bool |
Disables message alert box at runtime.
Signature
bool DisableRuntimeGUIAlerts |
OnAnchorCreate
(
_
, result
)
|
Handles the OnAnchorCreateCompleted event by logging "Failed to share the spatial anchor.".
If there is a cloud storage error, it will log that instead.
Signature
void OnAnchorCreate(OVRSpatialAnchor _, OVRSpatialAnchor.OperationResult result) Parameters Returns void |
OnAnchorErase
(
anchor
, result
)
|
Handles the OnAnchorEraseCompleted event by logging "Failed to erase the spatial anchor with uuid: " and the uuid of the anchor.
Signature
void OnAnchorErase(OVRSpatialAnchor anchor, OVRSpatialAnchor.OperationResult result) Parameters anchor: OVRSpatialAnchorresult: OVRSpatialAnchor.OperationResultReturns void |
OnAnchorEraseAll
(
result
)
|
Handles the OnAnchorsEraseAllCompleted event by logging "Failed to erase the spatial anchor(s).".
Signature
void OnAnchorEraseAll(OVRSpatialAnchor.OperationResult result) Parameters result: OVRSpatialAnchor.OperationResultReturns void |
OnAnchorShare
(
_
, result
)
|
Propagates OVRSpatialAnchor share failure message.
Signature
void OnAnchorShare(List< OVRSpatialAnchor > _, OVRSpatialAnchor.OperationResult result) Parameters _: List< OVRSpatialAnchor >Returns void |
OnSharedSpatialAnchorLoad
(
loadedAnchors
, 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.
Signature
void OnSharedSpatialAnchorLoad(List< OVRSpatialAnchor > loadedAnchors, OVRSpatialAnchor.OperationResult result) Parameters loadedAnchors: List< OVRSpatialAnchor >Returns void |