Skip to content

Instantly share code, notes, and snippets.

@PaulWall43
Created April 22, 2018 23:10
Show Gist options
  • Select an option

  • Save PaulWall43/f8839e141bc385b26b1c7752de5d1b4f to your computer and use it in GitHub Desktop.

Select an option

Save PaulWall43/f8839e141bc385b26b1c7752de5d1b4f to your computer and use it in GitHub Desktop.
//Perform before we run the session
override func viewDidLoad() {
super.viewDidLoad()
//Load the scene from art.scnassets folder (important to put your assets in this folder)
guard let scene = SCNScene(named: "art.scnassets/main.scn") else {return}
//Set the scene property of our ARSCNView to our custom scene
sceneView.scene = scene
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment