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

SpatialAnchorCoreBuildingBlock Class

Meta::XR::BuildingBlocks::SpatialAnchorCoreBuildingBlock extends MonoBehaviour.

Overview

Public Member Functions

void
InstantiateSpatialAnchor
( GameObject prefab,
Vector3 position,
Quaternion rotation )
Create an spatial anchor.
void
LoadAndInstantiateAnchors
( GameObject prefab,
List< Guid > uuids )
Load and instantiate anchors from a list of uuids.
void
Erase all instantiated anchors anchors.
void
EraseAnchorByUuid
( Guid uuid )
Erase a anchor by Guid.

Object Data

IEnumerator
IEnumerator
IEnumerator
LoadAnchorsRoutine
( GameObject prefab,

Details

Properties

UnityEvent<OVRSpatialAnchor, OVRSpatialAnchor.OperationResult> Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.OnAnchorCreateCompleted
No description available.
UnityEvent<List<OVRSpatialAnchor> > Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.OnAnchorsLoadCompleted
No description available.
UnityEvent<OVRSpatialAnchor.OperationResult> Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.OnAnchorsEraseAllCompleted
No description available.
UnityEvent<OVRSpatialAnchor, OVRSpatialAnchor.OperationResult> Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.OnAnchorEraseCompleted
No description available.
OVRSpatialAnchor.OperationResult Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.Result
No description available.
virtual OVRSpatialAnchor.EraseOptions Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.EraseOptions
No description available.

Member Functions

void Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.InstantiateSpatialAnchor
( GameObject prefab,
Vector3 position,
Quaternion rotation )
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
void Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.LoadAndInstantiateAnchors
( GameObject prefab,
List< Guid > uuids )
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.
void Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.EraseAllAnchors ( )
Erase all instantiated anchors anchors.
It'll collect the uuid(s) of the instantiated anchor(s) and erase them.
void Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.EraseAnchorByUuid
( Guid uuid )
Erase a anchor by Guid.
Parameters
uuid
Anchor's uuid to erase.

Object Data

IEnumerator Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.WaitForInit
( OVRSpatialAnchor anchor )
No description available.
IEnumerator Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.SaveLocalAsync
( OVRSpatialAnchor anchor )
No description available.
IEnumerator Meta.XR.BuildingBlocks.SpatialAnchorCoreBuildingBlock.LoadAnchorsRoutine
( GameObject prefab,
No description available.