如何删除 ARCore 中的所有平面 [英] How to remove all planes in ARCore
问题描述
如何移除 ARCore 中所有检测到的平面并重新开始检测它们?这甚至可能吗?我在 Google 和 Stackoverflow 上使用 arcore remove/delete all plane 进行搜索,但没有发现任何有用的东西.
How do I remove all detected planes in ARCore and restart the detection of them? Is this even possible? I searched on Google and Stackoverflow with arcore remove/delete all planes and I found nothing useful.
/我希望在启动版本检查后让 ARCore 处于相同状态,显示灰色的手部运动动画并且没有检测到平面(因此必须先删除它们)并且 ARCore 正在尝试检测新平面.
/ I want to have ARCore in the same state after the version check on start up, the grey hand-movement-animation is shown and no planes are detected (so they must be deleted first) and ARCore is trying to detect new planes.
推荐答案
重新启动应用程序,正如 Clayton Wilkinson 所说工作,我用下面的代码做到了:
Restarting the app as Clayton Wilkinson said works, I did it with the following code:
Intent i = new Intent(context, Main.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK);
context.startActivity(i);
这篇关于如何删除 ARCore 中的所有平面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!