Ejemplo n.º 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");
            }
        }
    }
Ejemplo n.º 2
0
 public void loadImport()
 {
     Application.LoadLevel("MetaPipe_ImportScene");
     ArtefactSaveData.ClearSaveData();
 }