Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Magic Leap ARFoundation Anchor Subsystem does not implement TryAttachAnchor

Discussion in 'AR' started by Katerpilet, May 3, 2020.

  1. Katerpilet


    Aug 2, 2015
    I am working on porting my game on ARFoundation that works on ARKit/ARCore to Magic Leap. I ran into an issue where I call:

    Code (CSharp):
    1. ARAnchorManager.AttachAnchor(aRFoundationTrackedPlane.ARPlane, new Pose(trackedPlane.PlaneCenter, trackedPlane.Rotation));
    And I get a null reference exception because Magic Leap does not implement the AttachAnchor API. An error should be returned instead of a null ref on a function call.