anice2706
8 months agoHonored Guest
Spatial Anchor LoadUnboundSharedAnchorsAsync Error -1006 - Need Help
Hello developers,
I'm encountering an issue with Shared Spatial Anchors in my Meta Quest Unity project.
The save and share process seems to work fine, but loading fails with error code -1006.
My implementation steps:
1. First, I save the anchor and share it:
// Save anchor
var saveResult = await anchor.SaveAnchorAsync();
// Share with users - this works successfully
OVRSpatialAnchor.ShareAsync(anchors, users).ContinueWith(OnShareCompleted, anchors);
private void OnShareCompleted(OVRSpatialAnchor.OperationResult result, IEnumerable<OVRSpatialAnchor> anchors)
{
if (result != OVRSpatialAnchor.OperationResult.Success)
{
return;
}
// Success callback is properly triggered
}
2. Then when trying to load:
var unboundAnchors = new List<OVRSpatialAnchor.UnboundAnchor>();
var uuids = new List<Guid> { mainAnchorUUID };
var result = await OVRSpatialAnchor.LoadUnboundSharedAnchorsAsync(uuids, unboundAnchors);
if (!result.Success)
{
// Getting error code -1006 here
return;
}
The interesting part is:
Save operation completes successfully
Share callback is triggered correctly
UserIDs are properly set
But loading always fails with error -1006
Has anyone encountered this error before? Any suggestions on what might be causing this or how to resolve it?
Thanks in advance for any help!