Hello, im trying to build an AR Application. Im using swift code like UIKit, ARCL, Corelocation, and SceneKit. im already create the AR run well on the mobile device and my corelocation each pin are succesfully placed on each location.
The problem is, when i clicked my object which is "the pin/ the object that i have been putted" it doesnt show any activities on the User Interface of Augmented reality. But the system work well on the debug area - activate console, when i click it shows all the name and the description of each pin that i press. But the problem is, the text/description doesnt show up on the Augmented reality/User Interface.
here is my coding :
(CODE LOCATION) var location = CLLocation(coordinate: CLLocationCoordinate2D(latitude: -6.7596, longitude: 107.6098), altitude: 2084) let image = UIImage(named: "pin")! var annotationNode = LocationAnnotationNode(location: location, image: image) annotationNode.annotationNode.name = "tangkuban perahu" sceneLocationView.addLocationNodeWithConfirmedLocation(locationNode: annotationNode)
(CODE TEXT/DESCRIPTION) override func touchesBegan(_ touches: Set, with event: UIEvent?) { if let touch = touches.first { let touchLocation = touch.location(in: sceneLocationView) let hitResults = sceneLocationView.hitTest(touchLocation) for result in hitResults { print("HIT:-> Name: (result.node.description)") print("HIT:-> description (String(describing: result.node.name))") } } }
(ACTIVATE CONSOLE "OUTPUT")
- tangkuban perahu