using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
public class ARPlaneInfo : MonoBehaviour
{
public ARPlaneManager arPlaneManager;
// Start is called before the first frame update
void Start()
{
arPlaneManager.planesChanged += planesChanged;
}
private void planesChanged(ARPlanesChangedEventArgs obj)
{
string str = string.Format("Planes:add={0} updata={1} remove={2}",obj.added.Count,obj.updated.Count,obj.removed.Count);
print("info:" + str);
}
}