Exemplo n.º 1
0
 private void OnPlaneUpdated(ARPlaneUpdatedEventArgs args)
 {
     /* TODO: Code for when two planes merge.
      * Tried a lot of things but I could not find how to check which planes merged.
      * Here are some code snippets that I tried but did not work:
      * 1.  if (args.plane.trackingState == UnityEngine.Experimental.XR.TrackingState.Unavailable)
      *  {
      *      activePlanes.Remove(args.plane);
      *  }
      * 2.  foreach (ARPlane plane in activePlanes)
      *  {
      *      if (plane.trackingState == UnityEngine.Experimental.XR.TrackingState.Unavailable)
      *      {
      *          activePlanes.Remove(plane);
      *      }
      *  }
      */
 }
Exemplo n.º 2
0
 private void OnPlaneUpdated(ARPlaneUpdatedEventArgs args)
 {
 }
Exemplo n.º 3
0
 //To get the number of plane when plane updated
 void PlaneUpdatedFunction(ARPlaneUpdatedEventArgs planeUpdated_Args)
 {
     nPlane = m_PlaneManager.planeCount;
     displayCountText();
 }