Example #1
0
 private void CreateSession()
 {
     easyarObject = Instantiate(EasyARSession, Instance.transform);
     easyarObject.SetActive(true);
     session        = easyarObject.GetComponent <ARSession>();
     vioCamera      = easyarObject.GetComponentInChildren <VIOCameraDeviceUnion>();
     mapFrameFilter = easyarObject.GetComponentInChildren <SparseSpatialMapWorkerFrameFilter>();
     mapSession     = new MapSession(mapFrameFilter, selectedMaps);
 }
Example #2
0
        public void SetMapSession(MapSession session)
        {
            mapSession = session;

            if (mapSession.MapWorker)
            {
                mapSession.MapWorker.MapLoad += (arg1, arg2, arg3, arg4) =>
                {
                    StartCoroutine(CheckVideo());
                };
            }
        }
Example #3
0
 private void DestroySession()
 {
     if (mapSession != null)
     {
         mapSession.Dispose();
         mapSession = null;
     }
     if (easyarObject)
     {
         Destroy(easyarObject);
     }
 }
 public void SetMapSession(MapSession session)
 {
     mapSession = session;
     PropDragger.SetMapSession(session);
 }
 public void SetMapSession(MapSession session)
 {
     mapSession = session;
     PropDragger.SetMapSession(session);
     mapData = mapSession.Maps[0];
 }
Example #6
0
 private void OnDisable()
 {
     mapSession = null;
     StopEdit();
 }