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