Search Unity

ARWorld Map save Map + Objects

Discussion in 'AR' started by Christop, Oct 29, 2019.

  1. Christop

    Christop

    Joined:
    Aug 21, 2012
    Posts:
    60
    Hi
    how would i extend the ARWorldMap example above to also save out the pose i use to place an object?
    https://github.com/Unity-Technologies/arfoundation-samples/

    I currently do a arRaycasthit get the pose and instantiate an object. What would i have to do to save this object along with the world map and then on map load to get its position again for instantiating it again.

    Thanks in advance
    Dimi
     
    Last edited: Oct 29, 2019
  2. frictionman

    frictionman

    Joined:
    Sep 15, 2017
    Posts:
    10
    I think the best approach would be to add a ReferencePoint via ReferencePointsManager and save the world map. Then upon loading you'll receive these points from _referencePointsManager.referencePointsChanged event.
     
  3. Christop

    Christop

    Joined:
    Aug 21, 2012
    Posts:
    60
    thanks i will give it a try