Unity3D调用外部程序

 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");

  }

}

posted @ 2012-07-27 11:44  silent  阅读(4558)  评论(0编辑  收藏  举报