从一个Unity应用(.exe)更改为另一个Unity应用(.exe)

时间:2019-10-18 07:33:01

标签: unity3d

是否可以从一个Unity应用更改为另一个?我不是在谈论场景更改,而是整个应用程序本身。喜欢: (a)从Game_1.exe更改为Game_2.exe (b)从Game_1.apk更改为Game_2.apk

1 个答案:

答案 0 :(得分:0)

您可以使用process.Start()方法启动新进程(例如.exe),如docs here

中所述

上述文档中的示例:

using (Process myProcess = new Process())
{
    myProcess.StartInfo.UseShellExecute = false;
    // You can start any process, HelloWorld is a do-nothing example.
    myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
    myProcess.StartInfo.CreateNoWindow = true;
    myProcess.Start();
}