private void ExportData() { string data = FormatData(); path = EditorUtility.SaveFilePanel("导出数据", "", "data", "txt"); if (path != "" && path != null) { FileUitls.Export(data, path); Debug.Log("导出数据 path:" + path); } }
private void SaveData() { string data = FormatData(); if (path != null && path != "") { FileUitls.Export(data, path); } else { ExportData(); } Debug.Log("保存数据 path:" + path); }