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

SpatialAnchorCoreBuildingBlock Class

Extends MonoBehaviour

Properties

UnityEvent< OVRSpatialAnchor, OVRSpatialAnchor.OperationResult > OnAnchorCreateCompleted[Get]
This should only be used for normal Spatial Anchors, use OnSharedSpatialAnchorsLoadCompleted for Shared Spatial Anchor loaded event.
UnityEvent< OVRSpatialAnchor.OperationResult > OnAnchorsEraseAllCompleted[Get]
UnityEvent< OVRSpatialAnchor, OVRSpatialAnchor.OperationResult > OnAnchorEraseCompleted[Get]

Member Functions

Create an spatial anchor.
Parameters
prefab
A prefab to add the OVRSpatialAnchor component.
position
Position for the new anchor.
rotation
Orientation of the new anchor
Load and instantiate anchors from a list of uuids.
Parameters
prefab
Prefab for instantiating the loaded anchors.
uuids
List of anchor's uuid to load.
Erase all instantiated anchors anchors.
It'll collect the uuid(s) of the instantiated anchor(s) and erase them.
Erase a anchor by Guid.
Parameters
uuid
Anchor's uuid to erase.

Protected Functions

async Task WaitForInit
( OVRSpatialAnchor anchor )
async Task SaveAsync
( OVRSpatialAnchor anchor )
async void LoadAnchorsAsync
( GameObject prefab,
IEnumerable< Guid > uuids )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon