快速摆脱使用 AR 的统计栏

问题描述

enter image description here

我正在开发 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。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...