【IOS】打开文本的方式兼容IOS
parent
12a8fd2417
commit
d1a82b5132
|
@ -133,7 +133,13 @@ namespace GameEditor.Util
|
||||||
EditorUtility.DisplayDialog("提示", "文件不存在", "确定");
|
EditorUtility.DisplayDialog("提示", "文件不存在", "确定");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if PLATFORM_IOS
|
||||||
|
ProcessCommand(Application.dataPath, "open " + tPath); //用记事本
|
||||||
|
|
||||||
|
#else
|
||||||
System.Diagnostics.Process.Start("notepad.exe", tPath); //用记事本
|
System.Diagnostics.Process.Start("notepad.exe", tPath); //用记事本
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
//返回 数组第一个是文件夹路径 ,以后的是文件名字
|
//返回 数组第一个是文件夹路径 ,以后的是文件名字
|
||||||
public static string[] OpenFileWin(string path,string ext = "*.*")
|
public static string[] OpenFileWin(string path,string ext = "*.*")
|
||||||
|
|
Loading…
Reference in New Issue