Table of Contents

Method CreateSpatialAnchor

Namespace
YVR.Core
Assembly
YVR.Core.Runtime.dll

CreateSpatialAnchor(Vector3, Quaternion, Action<YVRSpatialAnchorResult, bool>)

Creates a spatial anchor using the provided position and rotation.

public void CreateSpatialAnchor(Vector3 position, Quaternion rotation, Action<YVRSpatialAnchorResult, bool> result)

Parameters

position Vector3

The position of the anchor

rotation Quaternion

The rotation of the anchor

result Action<YVRSpatialAnchorResult, bool>

Callback for handling the result of the anchor creation process