Guest User

Untitled

a guest
Mar 17th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. override func viewWillAppear(_ animated: Bool) {
  2. super.viewWillAppear(animated)
  3.  
  4. // Create a session configuration
  5. let configuration = ARWorldTrackingConfiguration()
  6.  
  7. // configuration.planeDetection = [.horizontal, .vertical]
  8. // configuration.planeDetection = .vertical
  9. configuration.planeDetection = .horizontal
  10.  
  11. configuration.isLightEstimationEnabled = true
  12. // Run the view's session
  13. sceneView.session.run(configuration)
  14.  
  15. }
Add Comment
Please, Sign In to add comment