コード例 #1
0
ファイル: MyWorldMap.cs プロジェクト: zmzmkkm/UnityStudy
 private void OnSaveClick()
 {
     if (m_arWorldMap != null)
     {
         m_arWorldMap.Save(Config.path);
     }
 }
コード例 #2
0
 void OnWorldMap(ARWorldMap worldMap)
 {
     if (worldMap != null)
     {
         worldMap.Save(path);
         Debug.LogFormat("ARWorldMap saved to {0}", path);
     }
 }
コード例 #3
0
 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 = "";
         }
     }
 }
コード例 #4
0
 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");
         }
     }
 }
コード例 #5
0
    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
    }
コード例 #6
0
ファイル: WorldMapManager.cs プロジェクト: weacw/AR_draw
    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);
        }
    }