Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

ARFoundation does not support Restore AR Content After Relocalization?

Discussion in 'AR' started by yty, May 7, 2020.

  1. yty

    yty

    Joined:
    Aug 10, 2009
    Posts:
    81
    https://developer.apple.com/documentation/arkit/world_tracking/saving_and_loading_world_data

    https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/index.html

    How does arfoundation use ARSCNView And func renderer(SCNSceneRenderer, didAdd: SCNNode, for: ARAnchor)?

    Saving a world map also archives all anchors currently associated with the AR session. After you successfully run a session from a saved world map, the session contains all anchors previously saved in the map. You can use saved anchors to restore virtual content from a previous session.

    The same ARSCNView delegate method renderer(_:didAdd:for:) fires both when you directly add an anchor to the session and when the session restores anchors from a world map.
     
  2. todds_unity

    todds_unity

    Unity Technologies

    Joined:
    Aug 1, 2018
    Posts:
    324
    ARFoundation / ARKit does not use ARSCNView.
     
  3. yty

    yty

    Joined:
    Aug 10, 2009
    Posts:
    81
    @todds_unity

    arfoundation ....How to get the saved ARAnchor after loading the worldmap?
     
  4. todds_unity

    todds_unity

    Unity Technologies

    Joined:
    Aug 1, 2018
    Posts:
    324