Forum Discussion

InscapeVTS's avatar
InscapeVTS
Explorer
10 months ago
Solved

Discovered anchors are placed at (0,0,0)

Hi there, I'm trying to use MetaXR anchors for my current project. I previously used Unreal 5.1 with PCVR and I could create, save and reload anchors. I am now trying to do the same in an Unreal 5....
  • InscapeVTS's avatar
    10 months ago

    Well... I found it!

    There were two problems in what I made:

    - First, the spawned actor needs to have a component "OculusXRSpatialAnchor". This is not clearely written in the documentation, I thought that the MetaXR methods did that automatically.

    - Second, the spawned actor after a query "Spawn Oculus Anchor Actor" first instantiate the spawned actor at (0,0,0) and after a few frames moves it at its real position. Again, that is not written in the documentation.

    Hope that helps!