Hi,
I start detecting planes, all fine, then if I want to disable them I use.
foreach (ARPlane plane in arPlaneManager.trackables)
{
plane.gameObject.SetActive(false);
}
But what I’ve found is the AR won’t detect another plane where there was one and now is disabled.
I’ve also tried destroying them like so.
arPlaneManager.enabled = false;
foreach (ARPlane plane in arPlaneManager.trackables)
{
Destroy(plane.gameObject);
}
arPlaneManager.enabled = true;
But again the same problem, if i generate a plane on a table top then use the above code the AR won’t detect another plane on the table.
I’ve also used.
arSession.Reset();
But this leaves the planes behind, tried destroying them before and after a Reset() but still getting same results.
AR Foundation 2.1.3
Unity 2019.2.4f1
Any help Guys & Girls would be gratefully appreciated.