Skip to main content
Inspiring
April 16, 2023

Oculus Spatial Anchor drifts in the Passthrough space

I’m trying to spawn a Cube as spatial anchor. But after spawning it drifts if I move physically. 
I’m add OVRSpatialAnchor after instantiating like this,

 

_cube.AddComponent<OVRSpatialAnchor>();

 

Please correct me if I have to check something on the build settings or some Oculus settings in Unity. 

Thanks guys!

4 replies

New Participant
June 8, 2023

Hey, did you solve this issue at all?  We have just stumbled across the same issue and its currently a blocking issue for us. 

Inspiring
June 8, 2023

I’ve got it working. It was a minor thing. 
Please go ahead and create a new XML file via Oculus -> Tools in Unity. 
You have to update the XML to enable the Spatial Anchors working. 
Try it and let me know. 

New Participant
June 8, 2023

Sorry can you give me what was included in the XMlL file?

Sandstedt
Inspiring
November 2, 2024

A bit late, but for future devs:
Use the Meta Tools menu in Unity:

But it still drifts for me using v69 of the OS and the All-in-one SDK. Did you solve it?

 

Unity XR Developer