获取'静态成员'isSupported'不能在'ARConfiguration'类型的实例上使用'

import ARKit
    // Display Agumented button only if device supports it
    let session = ARSession()
    var sessionConfig: ARConfiguration = ARWorldTrackingConfiguration()
    if sessionConfig.isSupported {
        bottomBarView.leadingBarButtonItems = [ hButton, fButton, agumentedButton ] }
    else { bottomBarView.leadingBarButtonItems = [ hButton, fButton ] }

    bottomBarView.trailingBarButtonItems = [ aButton, bhButton, cButton ]
  }


我在这里做错了什么?

最佳答案

如错误消息清楚地告诉您,您必须说

if ARWorldTrackingConfiguration.isSupported {

关于swift - 静态成员'isSupported'不能用于'ARConfiguration'类型的实例,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48772807/

10-09 14:33