unity3d - 从一个 Unity 应用 (.exe) 更改为另一个 Unity 应用 (.exe)
问题描述
有没有办法从一个 Unity 应用程序更改为另一个?我说的不是场景变化,而是整个应用程序本身。比如:(a) 从 Game_1.exe 更改为 Game_2.exe (b) 从 Game_1.apk 更改为 Game_2.apk
解决方案
您可以使用该process.Start()
方法启动新进程(例如 .exe),如此处文档中所述
来自上述文档的示例:
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();
}
推荐阅读
- python - Python Flask 脚本在作为 .pyw 文件运行时自动关闭(包括解决方法)
- android - 街景在 android 应用程序中显示错误消息
- ios - 可访问性 - UIPickerView 作为 inputView
- android - 在 Firebase Auth 中使用 `Provider` 不起作用
- android - android studio中不存在Activity类
- python-3.x - keras中的input_shape和input_dim有什么区别?
- java - 为什么 11010100 << 1 等于 110101000,而不是 10101000?
- python - 为什么 CPLEX 的变量选择策略会影响用户分支决策?(Python)
- powershell - 仅适用于少数文件的 Powershell 命令
- android - Flutter 应用程序(飞镖)仅在特定区域启用订单,否则显示消息“您所在区域尚不可用”