【IOS】打开文本的方式兼容IOS

dev_chengFeng
JLIOSM1 2021-07-21 16:49:54 +08:00
parent 12a8fd2417
commit d1a82b5132
1 changed files with 6 additions and 0 deletions

View File

@ -133,7 +133,13 @@ namespace GameEditor.Util
EditorUtility.DisplayDialog("提示", "文件不存在", "确定");
return;
}
#if PLATFORM_IOS
ProcessCommand(Application.dataPath, "open " + tPath); //用记事本
#else
System.Diagnostics.Process.Start("notepad.exe", tPath); //用记事本
#endif
}
//返回 数组第一个是文件夹路径 ,以后的是文件名字
public static string[] OpenFileWin(string path,string ext = "*.*")