oculus-samples / Unity-SharedSpatialAnchors

Unity-SharedSpatialAnchors was built to demonstrate how to use the Shared Spatial Anchors API, available in the Meta XR Core SDK for the Unity game engine.
MIT License
119 stars 45 forks source link

Error -1006 occurs on sharing anchor. #4

Closed yutokun closed 1 year ago

yutokun commented 1 year ago

Possibly my mistake but I couldn't figure out. If anyone has any idea, please tell me.

Expected

Shared Anchor appears on opponent headset.

Actually

Error -1006 happens and nothing on opponent.

To Reproduce

IMG_0992

loic-all commented 1 year ago

We had the same problem and after some research we found the solution.

You have to create an app on the Meta Quest Org Manager. When the app is created, you have to add the app ID (found under "API" tab in the App Manager) in the Oculus Platform Settings in Unity. You also need to be granted the User ID and User Profile permissions in the App Manager under Data user Checkup.

yutokun commented 1 year ago

Thank you for sharing infomation.

I granted those permissions, then shared anchor appeared! Thank you so much.