Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Created December 3, 2019 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitallysavvy/f53fa4b8d7fe66bddf5aa72b0482b089 to your computer and use it in GitHub Desktop.
Save digitallysavvy/f53fa4b8d7fe66bddf5aa72b0482b089 to your computer and use it in GitHub Desktop.
A snippet showing how to remove the nodes from the last touch received within the ARSupportBroadcastViewController
case "undo":
if !self.touchRoots.isEmpty {
let latestTouchRoot: SCNNode = self.touchRoots.removeLast()
latestTouchRoot.isHidden = true
latestTouchRoot.removeFromParentNode()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment