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

  }

}

相关文章:

  • 2021-07-28
  • 2022-01-01
  • 2021-07-24
  • 2021-08-10
  • 2022-01-30
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2021-10-28
  • 2021-12-19
相关资源
相似解决方案