private void OnSaveClick() { if (m_arWorldMap != null) { m_arWorldMap.Save(Config.path); } }
void OnWorldMap(ARWorldMap worldMap) { if (worldMap != null) { worldMap.Save(path); Debug.LogFormat("ARWorldMap saved to {0}", path); } }
void OnWorldMap(ARWorldMap worldMap) { if (worldMap != null) { if (path != "") { worldMap.Save(path); GroundPlaneManager.instance.Save(nameInput.text); Debug.LogFormat("ARWorldMap saved to {0}", path); nameInput.text = ""; } } }
void OnWorldMap(ARWorldMap worldMap) { if (worldMap != null) { if (path != null) { worldMap.Save(path); Debug.LogFormat("ARWorldMap saved to {0}", path); } else { Debug.Log("Please, specify a path"); } } }
void OnWorldMap(ARWorldMap worldMap) { #if UNITY_EDITOR ScreenCapture.CaptureScreenshot(ReferenceImageSaveName); #else if (worldMap != null) { worldMap.Save(GlobalMapManager.Instance.WorldMapPath); // Temporarily hide elements just for screenshot PointCloudGenerator.ToggleParticles(false); ScreenUI.SetActive(false); //SetChildrenActive(false); ScreenCapture.CaptureScreenshot(ReferenceImageSaveName); StartCoroutine(BecauseIOSScreenshotBehaviorIsUndefined()); Debug.LogFormat("ARWorldMap saved to {0}", GlobalMapManager.Instance.WorldMapPath); //GlobalMapManager.Instance.UploadMap(); } #endif }
void OnWorldMap(ARWorldMap worldMap) { if (worldMap != null) { loadingScreen.SetActive(true); string fileName = ""; if (loadedWorldMapName == "") { fileName = GetFileName(); } else { fileName = loadedWorldMapName; } string pathToSave = Path.Combine(Application.persistentDataPath, string.Concat(fileName, ".worldmap")); // saving the lineRenderers in scene SaveLinesInScene(fileName); worldMap.Save(pathToSave); if (fileName != loadedWorldMapName) { string allMaps = PlayerPrefs.GetString("AllWorldMaps", ""); PlayerPrefs.SetString("AllWorldMaps", string.Concat(allMaps, fileName, '?')); windowManager.SaveSuccessful(); } else { windowManager.UpdateSuccessful(); } loadingScreen.SetActive(false); } }