Getting error when saving OVRSpatialAnchor to local
Can't save anchors to local. It works with the sample scene "SpatialAnchor" but not from my project.
Getting error:
OVRPlugin.SaveSpaceList failed with error Failure_OperationFailed
None of my debug lines below are fired, the error is fired from the OVRPlugin.
Is there any special authorization access to local storage or headset space access to allow somewhere in manifest or build settings?
public void SaveAnchor()
{
if (!_spatialAnchor)
{
var debugString = "No OVRSpatialAnchor found";
AnchorUIManager.Instance.debugTextBox.text = debugString;
return;
}
_spatialAnchor.Save((anchor, success) =>
{
if (!success)
{
var debugString2 = "Spatial anchor coudn't be saved.";
AnchorUIManager.Instance.debugTextBox.text = debugString2;
return;
}
var debugString = "Spatial anchor saved, now saving to playerPrefs...";
AnchorUIManager.Instance.debugTextBox.text = debugString;
SaveUuidToPlayerPrefs(anchor.Uuid);
});
}
}
