This is how my nodes and 3d model looks like:
What I would like to accomplish is when I tap on the model when the app is running, I want to print out the tapped node's name to the console.
This is what I managed to do but it only gives me back the entity and not the nodes.
@objc private func handleTap(sender: UITapGestureRecognizer) {
let tapLocation: CGPoint = sender.location(in: arView)
let result: [CollisionCastHit] = arView.hitTest(tapLocation)
guard let hitTest: CollisionCastHit = result.first
else { return }
let entity: Entity = hitTest.entity
}