1、调用外部浏览器
void OnGUI()
{
if (GUI.Button(new Rect(50, 50, 100, 30), "Click"))
{
Process.Start("IExplore.exe", "http://www.sina.com.cn/");
}
}
2、调用外部EXE
void OnGUI()
{
if (GUI.Button(new Rect(50, 50, 100, 30), "Click"))
{
Process.Start("C:\\Program Files\\Tencent\\QQ\\Bin\\QQ.exe");
}
}