From d1a82b5132489cf323cf08c05f2fc36d74405d8d Mon Sep 17 00:00:00 2001 From: JLIOSM1 <774727341@qq.com> Date: Wed, 21 Jul 2021 16:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90IOS=E3=80=91=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E7=9A=84=E6=96=B9=E5=BC=8F=E5=85=BC=E5=AE=B9?= =?UTF-8?q?IOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Editor/Util/ProcessUtil.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Scripts/Editor/Util/ProcessUtil.cs b/Assets/Scripts/Editor/Util/ProcessUtil.cs index 7b3d864b10..27c16c350d 100644 --- a/Assets/Scripts/Editor/Util/ProcessUtil.cs +++ b/Assets/Scripts/Editor/Util/ProcessUtil.cs @@ -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 = "*.*")