Something like anchors which is not anchors
We are a bit stuck. We have a streaming service that be need to consume which only works in OpenXR, but we need anchors which don't work with OpenXR (see https://communityforums.atmeta.com/t5/OpenXR-Development/Unity-OpenXR-OVRSpatialAnchor-Passthrough-Wobbly-models/m-p/1056332) Unity have confirmed our issue, but have not flagged a release version by which this will be fixed. As there anything we can use that is anchor like?494Views0likes0CommentsOVRSpatialAnchor.Share() fails.
I'm testing Shared Spatial Anchors on Meta Quest Pro. The codes below. using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpatialAnchorSender : MonoBehaviour { [SerializeField] ulong partnerUserID; void Start() { StartCoroutine(Share()); } IEnumerator Share() { var anchor = gameObject.AddComponent<OVRSpatialAnchor>(); yield return new WaitUntil(() => anchor.Created); var anchors = new HashSet<OVRSpatialAnchor> { anchor }; var user = new OVRSpaceUser(partnerUserID); var users = new HashSet<OVRSpaceUser> { user }; OVRSpatialAnchor.Share(anchors, users, (collection, result) => { if (result is OVRSpatialAnchor.OperationResult.Success) { Debug.Log($"Success sharing {collection.Count} anchor(s)."); } else { Debug.LogError(result); } }); } } Build it and run then I get logs below. What's wrong? The 3rd log in OVRSpatialAnchor states Success: var shareResult = OVRPlugin.ShareSpaces(spaces, handles, out var requestId); if (shareResult == OVRPlugin.Result.Success) { Development.LogRequest(requestId, $"Sharing {(uint)spaces.Length} spatial anchors..."); ... but 4th states Failure: Development.LogRequestResult(requestId, result >= 0, succesMessage: $"Spaces shared.", failureMessage: $"Spaces share failed with error {result}."); Here's my environment. Windows 10 Unity 2021.3.15f1 Oculus Integration 47.0 If you have any idea, please help me. Thank you.Solved2.9KViews0likes2Comments