Normal view

There are new articles available, click to refresh the page.
Before yesterdayUnity Forum

Process.Exited event works but functions do not call

Hi, I have the following code:

Code (CSharp):
  1.  void StartAC()
  2.     {
  3.  
  4.         GameRunning_UI.SetActive(true);
  5.         var GameProcess = Process.Start(new ProcessStartInfo
  6.         {
  7.             FileName = Acs_exe_path,
  8.             WorkingDirectory = AcRootDirectory,
  9.         });
  10.  
  11.         if (GameProcess == null || GameProcess.HasExited)
  12.         {
  13.             UnityEngine.Debug.LogError("Failed to start game process!");
  14.             return;
  15.         }
  16.         GameProcess.EnableRaisingEvents = true;...
Process.Exited event works but functions do not call
❌
❌