如何在ARCore中删除所有飞机 [英] How to remove all planes in ARCore
问题描述
如何在ARCore中删除所有检测到的平面并重新开始检测?这有可能吗?我在Google和Stackoverflow上搜索了 arcore删除/删除所有平面,但发现没有任何用处.
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.
/Edit:启动版本检查后,我想让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屋!