1

I have a scene with an object attached to an Anchor node.

 val anchor = hitResult.createAnchor()
        anchorNode = AnchorNode(anchor)
        anchorNode?.setParent(arSceneView.scene)

And then I attach my objects to this anchor.

When my app goes to background(or rotate) I call:

 arSceneView.pause()

And then I don't have the anchor anymore.

What are the best practices to recreate a scene with the objects in the same position?

Should I save the AnchorNode/HitResult/Nodes in the onSaveViewState?

Renaro Santos
  • 403
  • 1
  • 7
  • 19

0 Answers0