我已经看过很多关于飞机检测的教程和建议,但是我还没有看到关于如何禁用一旦启用的飞机检测的任何内容。我想在我把节点放在飞机上之后禁用飞机检测和检测。
在任何时候,您都可以重新配置arkit会话。因此,在Swift中,您可以做到:
let configuration = ARWorldTrackingConfiguration(); //...any other configurations configuration.planeDetection = [] //empty array (as opposed to .horizontal .vertical) sceneview.session.run(configuration)
有一个很好的例子是在应用程序的上下文中运行 here 您可以在UI中打开/关闭平面检测