public void OnAddProject() { var path = StandaloneFileBrowser.SaveFilePanel("Save Project", "", "", ""); path = path.Replace(@"\", "/"); if (path.Length > 0) { var folder = Directory.CreateDirectory(path); CurrentFolderPath = path; fileName = Path.GetFileName(path); Debug.Log("filename is " + fileName); CurrentFilePath = (path + "/"); Debug.Log(CurrentFilePath + "Current File path"); if (File.Exists(ProjectPathFiles)) { var ProjectPathsDataFiles = CurrentFolderPath + "$"; Debug.Log(ProjectPathsDataFiles); OpenProjectData.OpenProjectsDataPaths = (ProjectPathsDataFiles); string LastWrite = File.ReadAllText(ProjectPathFiles); string JsonString = ProjectPathsDataFiles; File.WriteAllText(ProjectPathFiles, JsonString + LastWrite); Debug.Log("File is exist"); } SecoundPanal.SetActive(true); Debug.Log("Add new project"); } LoadData.AutoSaveing(); }