You can click the test to view the scene (for example, from the location of the gesture recognizer), which will give you a list of the results of the shock test. From each result, you can get node (and other information):
let location: CGPoint = // for example from a tap gesture recognizer let hits = self.sceneView.hitTest(location, options: nil) if let tappedNode = hits?.first?.node { // do something with the tapped node ... }
source share