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); }
public void SetMapSession(MapSession session) { mapSession = session; if (mapSession.MapWorker) { mapSession.MapWorker.MapLoad += (arg1, arg2, arg3, arg4) => { StartCoroutine(CheckVideo()); }; } }
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]; }
private void OnDisable() { mapSession = null; StopEdit(); }