如何禁用平面检测。 Swift + ARKit
How to disable plane detection. Swift + ARKit
我看过很多关于平面检测的教程和建议,但我还没有看到任何关于如何禁用一旦启用的平面检测。我想在将节点放在平面检测和检测到的平面上后禁用它们
您可以随时重新配置 ARKit 会话。因此,在 swift 中,您可以:
let configuration = ARWorldTrackingConfiguration();
//...any other configurations
configuration.planeDetection = [] //empty array (as opposed to .horizontal .vertical)
sceneview.session.run(configuration)
在应用 here 的上下文中有一个很好的例子 运行,您可以在 UI
中打开 on/off 平面检测
我看过很多关于平面检测的教程和建议,但我还没有看到任何关于如何禁用一旦启用的平面检测。我想在将节点放在平面检测和检测到的平面上后禁用它们
您可以随时重新配置 ARKit 会话。因此,在 swift 中,您可以:
let configuration = ARWorldTrackingConfiguration();
//...any other configurations
configuration.planeDetection = [] //empty array (as opposed to .horizontal .vertical)
sceneview.session.run(configuration)
在应用 here 的上下文中有一个很好的例子 运行,您可以在 UI
中打开 on/off 平面检测