How to stop plane detection using ARKit

Hi guys.

As I understand, plane detection is tough battery consumer process. Once I’ve got my plane and set the base object for the game, I wish to stop plane detection (or generating reference points). Does anybody knows a how to disable plane detection? and a how to enable it again?

@tonymunoz
One way to do that that is by re-running the UnityARSessionNativeInterface’s RunWithConfig() with the new parameters, that belong’s in UnityARCameraManager script.
If you haven’t altered the script the two function should do the work :

public void planeDetectionON()
{
planeDetection = UnityARPlaneDetection.Horizontal;
ARKitWorldTrackingSessionConfiguration config = new ARKitWorldTrackingSessionConfiguration();
config.planeDetection = planeDetection;
config.alignment = startAlignment;
config.getPointCloudData = true;
config.enableLightEstimation = true;
m_session.RunWithConfig (config);

}
public void planeDetectionOFF()
{
	planeDetection = UnityARPlaneDetection.None;
	ARKitWorldTrackingSessionConfiguration config = new ARKitWorldTrackingSessionConfiguration();
	config.planeDetection = planeDetection;
	config.alignment = startAlignment;
	config.getPointCloudData = false;
	config.enableLightEstimation = false;
	m_session.RunWithConfig (config);
}

Hi guys. I have several days on this topic and nothing. I don’t know a way to stop plane detection.