Created
December 3, 2019 20:12
-
-
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
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
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