Forum Discussion
FabioWeltenbauer
2 years agoExplorer
Unreal Spacial Anchor Sample not working as expected
Hello, I am trying to get the unreal spacial anchor sample to work (https://github.com/oculus-samples/Unreal-SpatialAnchorsSample). But there happens to be a strange bug, which always sets my crea...
dario.maciel
2 years agoStart Member
it seems the reference of model spawn positioner is setting the transform value to 0,0,0. see if it references the proper actor. I think it should reference the right controller of the VR Pawn.
- dario.maciel2 years agoStart Member
try packaging your game. are you using vr preview or somehting?
- FabioWeltenbauer2 years agoExplorer
The packaging works fine. But also in the Build I have the same problem...
I was using vr preview in the editor and also tried using the meta xr simulator, because in the official example here it even shows how the spacial anchor sample should work there right out of the box.
https://developer.oculus.com/documentation/unreal/xrsim-unreal
- FabioWeltenbauer2 years agoExplorer
Thank you for your response,
Thats what my first idea was too, but weirdly the transform of the spawn positioner seems to be correct. I already tried printing out the transform value, which shows me correct values and when I only execute the SpawnActor method, without the next node with the "Oculus XR Async Create Spatial Anchor" method It spawns the Actor on the correct location. But then I can't really use them as Spacial Anchors, because it wont save or load them.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 29 days ago