Last active
February 3, 2020 08:29
-
-
Save lukas-ruzicka/ec5f60c49419409ea063d4ff5dccf016 to your computer and use it in GitHub Desktop.
Loading and assigning of reference objects (scanned real-world objects) to the AR session.
This file contains 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
// Loading reference objects from assets | |
guard let referenceObjects = ARReferenceObject.referenceObjects(inGroupNamed: "AppParade33Exhibition", | |
bundle: nil) else { return } | |
config.detectionObjects = referenceObjects | |
// In order "to listen" to the scene development, there needs to be a session delegate assigned | |
arView.session.delegate = self | |
arView.session.run(config, options: options) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment