问题描述
我正在开发 AR 应用,底部显示统计栏。我想隐藏它,但还没有找到这样做的功能。
我检查了 App Delegate 以查看是否启用了某些功能,但没问题。
'''
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController,ARSCNViewDelegate {
var solarSystem = SolarSystem()
var planetName:String = ""
@IBOutlet var sceneView: ARSCNView!
override func viewDidLoad() {
super.viewDidLoad()
// This line helps to show the points in the view
// self.sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints]
// Set the view's delegate
sceneView.delegate = self
sceneView.autoenablesDefaultLighting = true
// Show statistics such as fps and timing information
sceneView.showsStatistics = true
updatePlanet()
}
'''
解决方法
我正在阅读文档,并且我的 showStatistics 处于活动状态。
sceneView.showsStatistics = false
我只是输入 = false。