Is there a way to change from one Unity app to another? I am not talking about scene changing but the whole application itself. Like: (a) Changing from Game_1.exe to Game_2.exe (b) Changing from Game_1.apk to Game_2.apk
Asked
Active
Viewed 182 times
0
-
1you can probably spawn one process and close the current..what have you tried? – BugFinder Oct 18 '19 at 07:34
-
1https://stackoverflow.com/questions/8434379/start-new-process-without-being-a-child-of-the-spawning-process – gman Oct 18 '19 at 07:38
-
But can I keep the first process keep running while switching to another? I am sorry but all i could find was scene switching. – Oct 18 '19 at 08:48
-
It should be noted that the unity exe file is bitwise identical from one application to another (with, at most, some internal strings changed based on what name you gave it) and all the operational code that actually is your game is inside the `Xyz_Data` folder. – Draco18s no longer trusts SE Oct 18 '19 at 14:15
1 Answers
1
You can launch a new process (e.g .exe) by using the process.Start()
method, as explained in the docs here
Example from the above docs:
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();
}

Remy
- 4,843
- 5
- 30
- 60