예제 #1
0
    private void OpenModel(string pathToModel)
    {
        if (pathToModel.Length > 0)
        {
            try
            {
                int    verticeArchiveIndex     = pathToModel.IndexOf("/VerticeArchive");
                string verticeArchiveSubstring = pathToModel.Substring(verticeArchiveIndex);

                StartCoroutine(ImportModel(verticeArchiveSubstring));                 //"file://" + pathToModel
                ArtefactSaveData.ClearSaveData();
            }
            catch (System.Exception ex)
            {
                StartCoroutine(ErrorFeedback("model"));
                Debug.Log("Model not in VerticeArchive folder");
            }
        }
    }
예제 #2
0
 public void loadImport()
 {
     Application.LoadLevel("MetaPipe_ImportScene");
     ArtefactSaveData.ClearSaveData();
 }