Skip to content

Commit

Permalink
Merge pull request #217 from Pilot-Marc/debug-node-count
Browse files Browse the repository at this point in the history
InfoLabel includes ARKit attached node count
  • Loading branch information
aaronbrethorst authored Aug 16, 2019
2 parents 246a3df + c80c872 commit 224ed86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ARKit+CoreLocation/POIViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ extension POIViewController {

let comp = Calendar.current.dateComponents([.hour, .minute, .second, .nanosecond], from: Date())
if let hour = comp.hour, let minute = comp.minute, let second = comp.second, let nanosecond = comp.nanosecond {
infoLabel.text!.append(" \(hour.short):\(minute.short):\(second.short):\(nanosecond.short3)")
let nodeCount = "\(sceneLocationView.sceneNode?.childNodes.count.description ?? "n/a") ARKit Nodes"
infoLabel.text!.append(" \(hour.short):\(minute.short):\(second.short):\(nanosecond.short3)\(nodeCount)")
}
}

Expand Down

0 comments on commit 224ed86

Please # to comment.