Hi,
Xcode gives me an error when I try to connect automaticallyConfigureSession with arView., it also can't find ARWorldTrackingConfiguration in configuration. Someone an idea of what I'm doing wrong?
override func viewDidAppear( _ animated: Bool){
super.viewDidAppear(animated)
setupARView()
}
// MARK: Setup Methodes
func setupARView() {
arView.automaticallyConfigureSession = false
let configuration = ARWorldTrackingconfiguration()
configuration.planeDetection = [.horizontal, .vertical]
configuration.eviromentTexturing = .automatic
arView.session.run(configuration)
}
}
Post
Replies
Boosts
Views
Activity
Hi everyone,
I'm new to coding so this might be a really dumb question but I keep getting the following error "expressions are not allow at the top level". I think all the other errors are a flowing of this error, but again; I'm just getting into coding. Can anyone help? For explanation, I'm trying to make an AR app.
B
https://share.icloud.com/photos/06GfUQktOH8-tZvvNNHYJm7Iw