Created
March 4, 2019 14:43
-
-
Save giln/9a019daae1b39d854b85a8ff9dc581f6 to your computer and use it in GitHub Desktop.
SessionConfiguration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a session configuration | |
let configuration = ARWorldTrackingConfiguration() | |
// Enable Horizontal plane detection | |
configuration.planeDetection = .horizontal | |
// We want to receive the frames from the video | |
sceneView.session.delegate = self | |
// Run the session with the configuration | |
sceneView.session.run(configuration) | |
// The delegate is used to receive ARAnchors when they are detected. | |
sceneView.delegate = self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment