- Home /
Calling a process without losing focus on Unity
Hey, I am calling a minimized process and I am losing the focus on unity while the process is running in the background. I would like to remain focus on Unity even while the process is running in the background. Here is the code I am using:
void TellHp () {
Process say = new Process ();
say.StartInfo.FileName = "MY_PATH";
say.StartInfo.Arguments = hitPoint.ToString ();
say.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
say.Start();
}
Thank you!
Comment