Search Unity

Question Unable to get Local Spatial Anchors working on Hololens 2 while using Unity's XR SDK

Discussion in 'AR' started by PG_LusoSpace, Jul 26, 2021.

  1. PG_LusoSpace

    PG_LusoSpace

    Joined:
    Feb 5, 2017
    Posts:
    1
    Greetings everyone!

    I've been experimenting with local spatial anchors in Hololens 2, and I'm having an issue regarding making them work while using Unity's XR SDK.

    Whenever I use the WorldAnchorTransferBatch ImportAsync or ExportAsync methods, the completion reason in the callback will always be SerializationCompletionReason.UnknownError.

    This only occurs while using Unity's XR SDK, as when using the Legacy XR system the WorldAnchorTransferBatch methods work as expected.

    However, using the Legacy XR system on my team's current project is undesirable, as it harms its general performance.

    I'm currently using Unity 2019.4.28f1, with Mixed Reality Toolkit v2.7.2 installed.

    Has anyone here ever had a similar issue?
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958