Guest User

Untitled

a guest
Apr 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. override func viewWillAppear(_ animated: Bool) {
  2. super.viewWillAppear(animated)
  3.  
  4. guard let referenceImages = ARReferenceImage.referenceImages(inGroupNamed: "Mona Lisa Room", bundle: nil) else {
  5. fatalError("Missing expected asset catalog resources.")
  6. }
  7.  
  8. let configuration = ARWorldTrackingConfiguration()
  9. configuration.detectionImages = referenceImages
  10.  
  11. sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
  12. }
Add Comment
Please, Sign In to add comment