Editor/BuildingBlocks/BlockData/SampleSpatialAnchorController in the Meta XR Core SDK for an example of how to use this class.
AnchorPrefab
: GameObject
[Get][Set] |
A prefab to instantiate.
Signature
GameObject AnchorPrefab |
FollowHand
: bool
[Get][Set] |
Indicates whether the OVRSpatialAnchor source prefab you instantiate will follow the user's hand.
Signature
bool FollowHand |
SpawnSpatialAnchor
(
position
, rotation
)
|
Spawns a new OVRSpatialAnchor for the AnchorPrefab in the provided position and the provided orientation.
Signature
void SpawnSpatialAnchor(Vector3 position, Quaternion rotation) Parameters position: Vector3
Position for the new anchor.
rotation: Quaternion
Orientation of the new anchor
Returns void |